Run-Time Error '2950':

M

MeSteve

I am getting the error above when I am trying to run code to access an Access
DB. The code is only ther eif the database is closed, I open the
database,BAM my code works. I think I understand the cause of the error, but
how do I work around it?

I am using:

Set db = OpenDatabase("<UNC PATH>")
Set rs = db.OpenRecordset("tbl_Projects")

How do I reference a database that is not currently open? Or do I need to
train people to have the database open before running the code?
 
M

MeSteve

The plot thickens!

It will not work if I open an .mde file but will work if I open up a .mdb
file. I am not willing to let people have the .mdb frontend.
 
M

MeSteve

Good theory, but the database IS trusted and in a trusted location AND the
code is actually being called form a powerpoint. Now any ideas?
 

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

Top