G
Guest
When I run the following code, I get an error message "can't find "l"
referred to in expression". Can you please help me with what I'm doing wrong.
stDocName = "MAINFRM"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCMD.Gotorecord, [mainfrm], ac.newrec, [mainfrm]
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub
referred to in expression". Can you please help me with what I'm doing wrong.
stDocName = "MAINFRM"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCMD.Gotorecord, [mainfrm], ac.newrec, [mainfrm]
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub