Debugging

  • Thread starter Thread starter Neil Greenough
  • Start date Start date
N

Neil Greenough

I was recently tidying up my DB and was tidying one of my reports which is
generated from a form with a script in it. The script is:-

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.txtWordCount = Forms!Translators!txtWordCount
If PrintCount <> 1 Then
Else
If intPreviousTranslatorID = Me!ID Then
Me.MoveLayout = False
Me.NextRecord = True
Me.PrintSection = False
Else
intPreviousTranslatorID = Me.ID
End If
End If

End Sub

I think I may have deleted something important from the report. When I go to
run the report, I get a "Compile error. Method or data not found" message.
The following parts are highlighted in the above script:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.ID

I think that I may have deleted the ID part from a report.

Anybody got any ideas how I can go about fixing this?
 

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

Similar Threads


Back
Top