OPENING A DATABASE

  • Thread starter Thread starter bifteki via AccessMonster.com
  • Start date Start date
B

bifteki via AccessMonster.com

I am writing code for a database that was backuped and restored through SQL
Server . I'm trying to open this database by VBA code, through the following
line:

Set dbs_anima = OpenDatabase("anima.mdb")

When I run the function, I get an error message that the file couldn't be
found. I guess maybe the file isn't an .mdb file?
 
Bifteki,

I think you will need to specify the path to the database file, for
example...
Set dbs_anima = OpenDatabase("C:\YourFolder\anima.mdb")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top