DoCmd.GoToRecord question
- From: "Slez via AccessMonster.com" <u23064@uwe>
- Date: Wed, 10 Jan 2007 19:19:51 GMT
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
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/200701/1
.
- Follow-Ups:
- Re: DoCmd.GoToRecord question
- From: Jeff Boyce
- Re: DoCmd.GoToRecord question
- Prev by Date: Re: Entity Relationship Model
- Next by Date: Re: [OT] Re: Importing A Lot Of Data
- Previous by thread: Re: Entity Relationship Model
- Next by thread: Re: DoCmd.GoToRecord question
- Index(es):