Compile Error: Label not Defined

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top