Omit record if blank

J

Jamie

My database contains a field to be filled in only if required (customer
comments). I want to create a report on this field but do not want it shown
as a blank if the field has not been filled in. can anyone help
 
M

Marshall Barton

Jamie said:
My database contains a field to be filled in only if required (customer
comments). I want to create a report on this field but do not want it shown
as a blank if the field has not been filled in. can anyone help


If you do not want the records with a Null comments field,
then use a query for the report's record source. In the
query, set the comments field's criteria to Is Not Null,

If you want to show all the records, but without blank
comments, then don't use a query criteria. Instead, try
setting the comments text box control AND its section's
CanShrink property to Yes. If the text box has an attached
label, then you also need a lint of code in the section's
Format event procedure:
Me.[the text box].Visible = Not IsNull((Me.[the text box])
 

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

Top