CompactDatabase gives "3001: Invalid Argument"

CompactDatabase gives "3001: Invalid Argument"

Post by Ed Car » Thu, 04 Apr 1996 04:00:00



Any hints?  This code used to work under VB 3.0 - now it breaks under 4.0
- the 16-bit and the 32-bit. :(

DBEngine.CompactDatabase "c:\aaa.mdb", "C:\xxx.mdb", dbLangGeneral,
dbEncrypt

Any help greatly appreciated...

 
 
 

1. 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.


2. UniverseI - Unix - ODBC - Performance tuning

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

4. Parameterized query

5. Error 3001 - Invalid argument

6. Text TO DB - generic convertor needed.

7. Error 3001: Invalid argument

8. BTR400

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

10. OpenRecordset 3001 Invalid Argument error

11. "Invalid Argument" ODBC error

12. "Invalid Argument" errors

13. Invalid procedure call or argument "DTSDestination"