Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what means the "error message"?

Status
Not open for further replies.

longmatch

Programmer
Nov 1, 2001
406
When I run this piece of code in Immediate Window, it has run-time error "3001" invalid argument. What is the reason for this?

set newdb = dbengine.Workspaces(0).CreateDatabase("c:\mynew.mdb", dblangGeneral)

Please give me a help.

Haijun
 
Go to the module where this code resides and then select Microsoft DAO 3.6 Object Library from the Tools References menu. Try it again after you have done that.

NOTE:
Microsoft DAO 3.6 is for MS Access 2000 databases
If you have an older version of MS Access then you will have to select an earlier version of the object library like DAO 3.51 etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top