J
J S
I am new Microsoft Access and I have just started creating a database.
I am writing some VBA code in Access to help customize my database. In the
past I have always used the Abstract database object to query databases and
I would like to continue to use it when deal with the data in the access
database. Is there a way to do this?
I tried to connect to the access database via the following commands:
------------------------------------------------------------
Dim MyConn As New ADODB.Connection
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
CurrentProject.FullName & ";Jet OLEDBatabase"
MyConn.Open strConn
------------------------------------------------------------
But I recieved the following error:
------------------------------------------------------------
The database has been pplaced in a state by user 'admin' that precents it
from being opened or locked.
------------------------------------------------------------
I assume this is because the database is already open and will always be
open anytime VBA code INSIDE the database is being used.
Any ideas?
-J
I am writing some VBA code in Access to help customize my database. In the
past I have always used the Abstract database object to query databases and
I would like to continue to use it when deal with the data in the access
database. Is there a way to do this?
I tried to connect to the access database via the following commands:
------------------------------------------------------------
Dim MyConn As New ADODB.Connection
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
CurrentProject.FullName & ";Jet OLEDBatabase"
MyConn.Open strConn
------------------------------------------------------------
But I recieved the following error:
------------------------------------------------------------
The database has been pplaced in a state by user 'admin' that precents it
from being opened or locked.
------------------------------------------------------------
I assume this is because the database is already open and will always be
open anytime VBA code INSIDE the database is being used.
Any ideas?
-J