I have form with ten tabbed pages. I want to move from the first page to the 10th page using a command button rather than the tab control at the top of the form. How can I do it? Below is the code from the command button created by the wizard. Thanks Russ
Private Sub cmdGoToPage10_Click()
On Error GoTo Err_cmdGoToPage10_Click
Screen.PreviousControl.SetFocus
' DoCmd.FindNext
Exit_cmdGoToPage10_Click:
Exit Sub
Err_cmdGoToPage10_Click:
MsgBox Err.Description
Resume Exit_cmdGoToPage10_Click
End Sub
Private Sub cmdGoToPage10_Click()
On Error GoTo Err_cmdGoToPage10_Click
Screen.PreviousControl.SetFocus
' DoCmd.FindNext
Exit_cmdGoToPage10_Click:
Exit Sub
Err_cmdGoToPage10_Click:
MsgBox Err.Description
Resume Exit_cmdGoToPage10_Click
End Sub