M
MeSteve
I am programming a powerpoint to retrieve data from a database. I am using:
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase("\\Folder Path\ProjectTracker_be.accdb")
Set rs = db.OpenRecordset("tbl_Projects")
At first, I was getting an error that the database was not open. Opening
the database before I ran my code seemed to fix this. This does not seem to
be a reliable enough solution for a production product as I sometimes still
get the error that the databse is not open.
Is there a more reliable way to access my data, maybe without using
OpenDatabase and having to have the database open at all?
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase("\\Folder Path\ProjectTracker_be.accdb")
Set rs = db.OpenRecordset("tbl_Projects")
At first, I was getting an error that the database was not open. Opening
the database before I ran my code seemed to fix this. This does not seem to
be a reliable enough solution for a production product as I sometimes still
get the error that the databse is not open.
Is there a more reliable way to access my data, maybe without using
OpenDatabase and having to have the database open at all?