Compile Error: Label not Defined

  • Thread starter Thread starter Jeannette
  • Start date Start date
J

Jeannette

I'm in the process of converting databases from Access 97 to Acces
2002.

When I was compiling the event procedure I encountered an error:

"Compile Error: Label Not Defined"
When I debug the error it stops at:
Resume Exit_Print_Report___Location_Click


The event procedure is as follows:

Private Sub Print_Report___Location_Click()
On Error GoTo Err_Print_Report___Location_Click

Dim stDocName As String

stDocName = "rptTeleServiceRequestbyLocation"
DoCmd.OpenReport stDocName, acNormal

Exit_Preview_Report___Location_Click:
Exit Sub

Err_Print_Report___Location_Click:
MsgBox Err.Description
Resume Exit_Print_Report___Location_Click

End Sub

I searched on the Internet for help and found no luck. Any assistanc
would be appreciated!
 
You sure you've got the same number of underscore characters in each
location? (FWIW, the multiple underscores don't strike me as a good idea,
for just that reason. Having 1 should be sufficient)
 
Back
Top