What I am trying to do is accessing the database from excel and adding a record to a certain table.I am able to use it using ADODB recordsets, but I want to use simply DAO because some VBA libraries are missing on some other test stations so ADO libraries cannot be referenced.That gives a problem in consistency.
I was running into this problem..
Dim db As Database, rs As Recordset, r As Long
Set db = OpenDatabase("C:\databaseName" ' open the database
Set rs = db.OpenRecordset("tblName",dbOpenTable) ' get all records in a table
I get a run time error ("Invalid Operation" when the recordset has to be set.It says that "You tried to write to a read-only property" in the help menu.I cannot figure out why the recordset is not set to that table.Please help me out here.Thanx.
I was running into this problem..
Dim db As Database, rs As Recordset, r As Long
Set db = OpenDatabase("C:\databaseName" ' open the database
Set rs = db.OpenRecordset("tblName",dbOpenTable) ' get all records in a table
I get a run time error ("Invalid Operation" when the recordset has to be set.It says that "You tried to write to a read-only property" in the help menu.I cannot figure out why the recordset is not set to that table.Please help me out here.Thanx.