M
Mary/Phil Stewart
I have a form with a command button. Which when clicked goes to the next
record. However, when it gets to a given record I want the cursor to go a
field other than the first one. The field I want to be focused on is,
"Page". Here is the code I am using:
Private Sub NextATM_Click()
On Error GoTo Err_NextATM_Click
DoCmd.GoToRecord , , acNext
Page.SetFocus
Exit_NextATM_Click:
Exit Sub
Err_NextATM_Click:
MsgBox Err.Description
Resume Exit_NextATM_Click
End Sub
When I click on the command button, with this code in place, I get an error,
"Compile Error: Invalid qualifier"
I am using Access2K with Win2K.
Can anybody help?
Thanks,
Phil
record. However, when it gets to a given record I want the cursor to go a
field other than the first one. The field I want to be focused on is,
"Page". Here is the code I am using:
Private Sub NextATM_Click()
On Error GoTo Err_NextATM_Click
DoCmd.GoToRecord , , acNext
Page.SetFocus
Exit_NextATM_Click:
Exit Sub
Err_NextATM_Click:
MsgBox Err.Description
Resume Exit_NextATM_Click
End Sub
When I click on the command button, with this code in place, I get an error,
"Compile Error: Invalid qualifier"
I am using Access2K with Win2K.
Can anybody help?
Thanks,
Phil