M
mike_dowler
Guest
Hi guys! I need some help please... Working in A2K using VBA.
I have searched the forum and found lots of posts on using Nodata - but I am trying to do something different. When a report (based on a query) is empty (no records) I DO want the report to print, ideally with a single text box to the effect that there were no records. I need that positive confirmation that the report is empty.
I have tried putting a text box in there with Visible = False, which I could then change using DCount or something to Visible = True if there are no records... But: I can't put it in the detail (cos there isn't one if there are no records) and the header won't canshrink, so there is a big empty space there the rest of the time.
Any thoughts?
Mike
I have searched the forum and found lots of posts on using Nodata - but I am trying to do something different. When a report (based on a query) is empty (no records) I DO want the report to print, ideally with a single text box to the effect that there were no records. I need that positive confirmation that the report is empty.
I have tried putting a text box in there with Visible = False, which I could then change using DCount or something to Visible = True if there are no records... But: I can't put it in the detail (cos there isn't one if there are no records) and the header won't canshrink, so there is a big empty space there the rest of the time.
Any thoughts?
Mike