manix
Registered User.
- Local time
- Today, 06:36
- Joined
- Nov 29, 2006
- Messages
- 100
Hi,
I have a line of text boxes on a report that report values via a query. Now sometimes the report may not have any values to display, but the report must still be produced and printed.
I have 5 text boxes that, if the query does not return any results, I want these txt boxes to not be visible and instead, a message is displayed along the lines of "No items to report this month".
The txt boxes are contained within the detail section of the report, and this is continuous. At present I just get 5 blank text boxes in one row when the query does not return any data.
Can anyone help?
I have tried this on the detail event "on format"
If IsNull(TextBoxThatReceivesValue) Then
Me!TextBoxThatReceivesValue.Visible = False
Else
Me!TextBoxThatReceivesValue.Visible = True
End If
but doesn't seem to work and i don't know where else to put it?!!
Thanks,
I have a line of text boxes on a report that report values via a query. Now sometimes the report may not have any values to display, but the report must still be produced and printed.
I have 5 text boxes that, if the query does not return any results, I want these txt boxes to not be visible and instead, a message is displayed along the lines of "No items to report this month".
The txt boxes are contained within the detail section of the report, and this is continuous. At present I just get 5 blank text boxes in one row when the query does not return any data.
Can anyone help?
I have tried this on the detail event "on format"
If IsNull(TextBoxThatReceivesValue) Then
Me!TextBoxThatReceivesValue.Visible = False
Else
Me!TextBoxThatReceivesValue.Visible = True
End If
but doesn't seem to work and i don't know where else to put it?!!
Thanks,