J
John
Hi
I have a form "Selection"
A subform "Game"
On a Cmd button I'm trying to get Selection to go to a new
record but Game to go to first record. Game is a reference
tbl.Ive tried the following, and variations of but keep
being told that the form either doesn't exist or is not
open. In the Project pane I am can see both forms and the
correct spelling.I'm stuck. Any pointers appreciated
Private Sub CmdAdd_Click()
On Error GoTo Err_CmdAdd_Click
DoCmd.OpenForm "Me!Form!Selection!Game", acNormal
DoCmd.GoToRecord acDataForm, "Me!Form!Selection!Game",
acFirst
DoCmd.GoToRecord , , acNewRec
Exit_CmdAdd_Click:
Exit Sub
I have a form "Selection"
A subform "Game"
On a Cmd button I'm trying to get Selection to go to a new
record but Game to go to first record. Game is a reference
tbl.Ive tried the following, and variations of but keep
being told that the form either doesn't exist or is not
open. In the Project pane I am can see both forms and the
correct spelling.I'm stuck. Any pointers appreciated
Private Sub CmdAdd_Click()
On Error GoTo Err_CmdAdd_Click
DoCmd.OpenForm "Me!Form!Selection!Game", acNormal
DoCmd.GoToRecord acDataForm, "Me!Form!Selection!Game",
acFirst
DoCmd.GoToRecord , , acNewRec
Exit_CmdAdd_Click:
Exit Sub