ERROR 3001 - "Invalid Argument" 
Author Message
 ERROR 3001 - "Invalid Argument"

I'm attempting to utilize the CreateDatabase command in VB 3.0 under
Windows 3.11 with the code provided in VB Help and I keep getting an
"invalid argument" ERROR 3001.  Can anybody give me some reason why?
The expression is quite straightforward and I am conforming to the
conventions  -

DIM DB as Database
DIM DBNAME as String
DBNAME = "B:\NEWDB.MDB"
Set DB = CreateDatabase(DBNAME, DB_LANG_GENERAL)

etc., etc.

It crashes on the SET command line every time .....

Any help would be appreciated.




Tue, 07 Jul 1998 03:00:00 GMT
 ERROR 3001 - "Invalid Argument"


Quote:
(Bruce Wilkey) writes:
>DIM DB as Database
>DIM DBNAME as String
>DBNAME = "B:\NEWDB.MDB"
>Set DB = CreateDatabase(DBNAME, DB_LANG_GENERAL)

>etc., etc.

>It crashes on the SET command line every time .....

>Any help would be appreciated.

if the VB constant file is not included in the PRJ then DB_LANG is
undefined


Thu, 09 Jul 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. CompactDatabase gives "3001: Invalid Argument"

2. Error 3001, Invalid Argument, Not all the time!

3. Error 3001: Invalid argument

4. OpenRecordset 3001 Invalid Argument error

5. Please Help...Linking MBD's with code -- ERROR 3001 - Invalid Argument

6. Error 3001 - Invalid argument

7. "Invalid Argument" errors

8. "Invalid Argument" ODBC error

9. Invalid procedure call or argument "DTSDestination"

10. Error 3001 - Arguments are of the wrong type...

11. trigger error - Invalid Object "Inserted"

12. Run-time error "5": Invalid procedure call


 
Powered by phpBB® Forum Software