M
Microwave
How do I create a report that shows the word "None" instead of being blank?
How do I create a report that shows the word "None" instead of being blank?
fredg said:How do I create a report that shows the word "None" instead of being blank?
A report that shows the word "None"?
Perhaps you mean a control in the report that displays "None" when
it's value is null?
=IIf(IsNull([FieldName]),"None",[FieldName])
Make sure the name of this control is not the same as the name of any
control used in the control source expression.
Add a label to the report header or to the Page header section with these
properties.
Name: lblNoData
Caption: There is no date for this report
Visible: No
In the form's No Data event add code like the following
Private Sub Report_NoData(Cancel As Integer)
Me.lblNoData.Visible = True
Me.Section(acDetail).Visible = False
'Add the next line if you have a group header
Me.Section(acGroupLevel1Footer).Visible = False
'Add the next line if you have a group footer
Me.Section(acGroupLevel1Header).Visible = False
'If you have additional sections to hide check out
'the Section property in help for guidance
End Sub
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
- Show quoted text -
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.