G
Guest
Hello,
I am trying to maintaining a program. However, when I excute it, it show
a error message
Run-time error '91';
Object variable or with block variable not set.
If I select debug, it went to a line of code, which looks ok.
It any tip to find out the problem? Thank you.
the error code is a small Private Sub
Private Sub Form_Open(Cancel As Integer)
Set MeDtls = ndb.OpenRecordset("Record Details", dbOpenDynaset) <---
error happenned
Set SaDtls = ndb.OpenRecordset("Sample Details", dbOpenDynaset)
End Sub
Record Details & Sample Details are tables.
Public ndb As DAO.Database in Globals Declarations
Dim MeDtls As DAO.Recordset in the same form of the Private Sub
fox
I am trying to maintaining a program. However, when I excute it, it show
a error message
Run-time error '91';
Object variable or with block variable not set.
If I select debug, it went to a line of code, which looks ok.
It any tip to find out the problem? Thank you.
the error code is a small Private Sub
Private Sub Form_Open(Cancel As Integer)
Set MeDtls = ndb.OpenRecordset("Record Details", dbOpenDynaset) <---
error happenned
Set SaDtls = ndb.OpenRecordset("Sample Details", dbOpenDynaset)
End Sub
Record Details & Sample Details are tables.
Public ndb As DAO.Database in Globals Declarations
Dim MeDtls As DAO.Recordset in the same form of the Private Sub
fox