Hi,
When I run
Public Sub getRecord(recNum)
On Error GoTo Err_getRecord
DoCmd.GoToRecord , , acGoTo, recNum
Exit_getRecord:
Exit Sub
Err_getRecord:
MsgBox Err.Description
Resume Exit_getRecord
End Sub
in the specified form code window, I receive an error that states "You cannot go to the specified record." It seems that the syntax is correct, is there a setting on the form I'm missing?
When I run
Public Sub getRecord(recNum)
On Error GoTo Err_getRecord
DoCmd.GoToRecord , , acGoTo, recNum
Exit_getRecord:
Exit Sub
Err_getRecord:
MsgBox Err.Description
Resume Exit_getRecord
End Sub
in the specified form code window, I receive an error that states "You cannot go to the specified record." It seems that the syntax is correct, is there a setting on the form I'm missing?