I'm trying to run a function that uses DAO to open an object of the database the code resides in:
Dim myDB As Database
Dim rst, rstTable As Recordset
Set myDB= OpenDatabase("G:\dept\share\My.mdb"
Set rst = myDB.OpenRecordset("qryOutput", dbOpenForwardOnly)
Set rstTable = myDB.OpenRecordset("tblOutput"
When trying to run I get the error in the subject field. Code worked earlier today. Please advise. Thanks, Dan.
Dim myDB As Database
Dim rst, rstTable As Recordset
Set myDB= OpenDatabase("G:\dept\share\My.mdb"
Set rst = myDB.OpenRecordset("qryOutput", dbOpenForwardOnly)
Set rstTable = myDB.OpenRecordset("tblOutput"
When trying to run I get the error in the subject field. Code worked earlier today. Please advise. Thanks, Dan.