When I run the following code I get a 'Compile Error: Label not found' on the second line:
Private Sub Command68_Click()
'The following line is where the code errors out
On Error GoTo Err_Command68_click
FollowHyperlink Outage_Log
exit_Command68_Click:
DoCmd.CancelEvent
End Sub
Err_Command68:
Select Case Err.Number
Case 490
MsgBox "The requested document does not exist.", , "Message"
Case Else
MsgBox Err.Number & ": " & Err.Description
End Select
Resume exit_Command68_Click
End Sub
I would appreciate any help.
Thanks,
BigChuck
Private Sub Command68_Click()
'The following line is where the code errors out
On Error GoTo Err_Command68_click
FollowHyperlink Outage_Log
exit_Command68_Click:
DoCmd.CancelEvent
End Sub
Err_Command68:
Select Case Err.Number
Case 490
MsgBox "The requested document does not exist.", , "Message"
Case Else
MsgBox Err.Number & ": " & Err.Description
End Select
Resume exit_Command68_Click
End Sub
I would appreciate any help.
Thanks,
BigChuck