G
Guest
I have been looking through previous links but still fail to find anything to
help with this error. I am getting a label not defined error on the 2nd
line. All the posts I have been reading deal with errors further down the
syntex.
Private Sub rptalphabtn_Click()
On Error GoTo Err_rptalphabtn_Click
Dim stDocName As String
stDocName = "Alpha Roster (By Dept)"
DoCmd.OpenReport stDocName, acPreview
Exit_rptalphabtn_Click:
Exit Sub
Err_rptbirthdaybtn_Click:
MsgBox Err.Description
Resume Exit_rptalphabtn_Click
End Sub
help with this error. I am getting a label not defined error on the 2nd
line. All the posts I have been reading deal with errors further down the
syntex.
Private Sub rptalphabtn_Click()
On Error GoTo Err_rptalphabtn_Click
Dim stDocName As String
stDocName = "Alpha Roster (By Dept)"
DoCmd.OpenReport stDocName, acPreview
Exit_rptalphabtn_Click:
Exit Sub
Err_rptbirthdaybtn_Click:
MsgBox Err.Description
Resume Exit_rptalphabtn_Click
End Sub