S
Slez via AccessMonster.com
I have a command button that opens frmNoBidMain, which contains a subform
called frmNoBid. In the open event of frmNoBid is the following code:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord acDataForm, "frmNoBid", acNewRec
End Sub
My intent is that when you open frmNoBidMain, it takes you to the new record
in frmNoBid.
When I click the command button, I get an error message: Run-time error
'2489'; The object 'frmNoBid' isn't open.
Debugging highlights my DoCmd line. Clicking Help doesn't yield anything.
What is wrong with my code?
Thanks!
Slez
called frmNoBid. In the open event of frmNoBid is the following code:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord acDataForm, "frmNoBid", acNewRec
End Sub
My intent is that when you open frmNoBidMain, it takes you to the new record
in frmNoBid.
When I click the command button, I get an error message: Run-time error
'2489'; The object 'frmNoBid' isn't open.
Debugging highlights my DoCmd line. Clicking Help doesn't yield anything.
What is wrong with my code?
Thanks!
Slez