For each ctrl In Me

reddevil1

Registered User.
Local time
Today, 10:47
Joined
Nov 12, 2012
Messages
92
I have a Query which starts a report.

In my Report I used to have a hidden Text Box which woudl (hopefully) be unhidden if the Query produced No records. I actually never got to test it properly!!

But now when I get No Records, the Report does not open, and i get an error message saying:-

Cannot find the object 'For Each ctrl In Me'.

Maybe this is residue from my previous attempts? Or is this a standard message?

How can I delete it and start again?
 
I managed to find the code in OnNoData in theReport section.
I clicked on the ...3 dots and deleted the code from there.
Now it prints a report even if there is no data.
Cheers.
 

Users who are viewing this thread

Back
Top Bottom