Hello all
I have a problem - and being a little new to Access - it seems like a
nightmare to figure out.
Here is the Prob.
I have a Database which consists of a bunch of Tables. Now I have an
application which is running on the same PC which is testing an electronic
device and at the end of the test it opens up a database connection and adds
the test results to one of the tables (table depends on the device being
tested). All this works fine unless I have the database open and I am using
a form to examine data in the tables. The Test Software returns the
following..
ActiveX Object "DAO Workspace" returned error code 0x800a0d1c(3356 )
Attempting to open a Database that is already open
I am not opening the database exclusively when I am looking at the forms.
Here is the code I am using in my Test Software which is returning the error
Set db = createObject("D AO.DBEngine.36" ).OpenDatabase( "MyDatabase.mdb ",
TRUE, FALSE)
Set rst = db.OpenRecordSe t("My Table", dbOpenDynaset)
rst.AddNew
** I set the Fields here **
rst.Update
rst.Close
db.Close
The error is returned from the first line which tries to open the database.
I would like to know
1. Can I have an application open a database connection while I am looking
at it
2. If I can - the am I going about this the wrong way
Any help will be gratefully received
Incidently - the test software is Agilents HP Vee running using the
Microsoft DAO 3.6 Object Library
Thanks
Shaun H
I have a problem - and being a little new to Access - it seems like a
nightmare to figure out.
Here is the Prob.
I have a Database which consists of a bunch of Tables. Now I have an
application which is running on the same PC which is testing an electronic
device and at the end of the test it opens up a database connection and adds
the test results to one of the tables (table depends on the device being
tested). All this works fine unless I have the database open and I am using
a form to examine data in the tables. The Test Software returns the
following..
ActiveX Object "DAO Workspace" returned error code 0x800a0d1c(3356 )
Attempting to open a Database that is already open
I am not opening the database exclusively when I am looking at the forms.
Here is the code I am using in my Test Software which is returning the error
Set db = createObject("D AO.DBEngine.36" ).OpenDatabase( "MyDatabase.mdb ",
TRUE, FALSE)
Set rst = db.OpenRecordSe t("My Table", dbOpenDynaset)
rst.AddNew
** I set the Fields here **
rst.Update
rst.Close
db.Close
The error is returned from the first line which tries to open the database.
I would like to know
1. Can I have an application open a database connection while I am looking
at it
2. If I can - the am I going about this the wrong way
Any help will be gratefully received
Incidently - the test software is Agilents HP Vee running using the
Microsoft DAO 3.6 Object Library
Thanks
Shaun H
Comment