Skip records where a field is blank

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Please help, I want the records in a report where a field is empty (null) to
skip and not shown.
Do you know how it is done?

Thanks
GL
 
Add a criterion expression to the query that is the report's RecordSource
that omits records where that field has a Null value.
 
The best solution is Ken suggestion, to remove the Null rows using the Record
Source of the report.

Another option will be, to set the Can Shrink property of the Text boxes and
the Section where the Text Boxes are located in to Yes.
Just another approach that can be handy sometimes
 
Hi,
Please help, I want the records in a report where a field is empty (null) to
skip and not shown.
Do you know how it is done?

Thanks
GL

One way is to code the Detail Section Format event:

Me.PrintSection = Not IsNull([FieldName])
Me.MoveLayout = Not IsNull([FieldName])

But why are any of these records in the report record source in the
first place?
 
Thank you all
The records contain information about products, in some of those products
the cost field is empty because the price is not fixed yet so I dont't want
tthose records to show in report.
I have also tried in the format event th code
Me.Detail.Visible = Not IsNull(Me.TxtCost)
and it works.
Do you know which one of the suggested methods wil give faster report?

GL

fredg said:
Hi,
Please help, I want the records in a report where a field is empty (null) to
skip and not shown.
Do you know how it is done?

Thanks
GL

One way is to code the Detail Section Format event:

Me.PrintSection = Not IsNull([FieldName])
Me.MoveLayout = Not IsNull([FieldName])

But why are any of these records in the report record source in the
first place?
 
Without testing and without knowing the number of records involved I can
only say that in most cases using a query with criteria as the source will
give you the best results in terms of speed. Also, if you decide to change
which records are being printed in the report then the query is the easiest
to modify.


GL said:
Thank you all
The records contain information about products, in some of those products
the cost field is empty because the price is not fixed yet so I dont't
want
tthose records to show in report.
I have also tried in the format event th code
Me.Detail.Visible = Not IsNull(Me.TxtCost)
and it works.
Do you know which one of the suggested methods wil give faster report?

GL

fredg said:
Hi,
Please help, I want the records in a report where a field is empty
(null) to
skip and not shown.
Do you know how it is done?

Thanks
GL

One way is to code the Detail Section Format event:

Me.PrintSection = Not IsNull([FieldName])
Me.MoveLayout = Not IsNull([FieldName])

But why are any of these records in the report record source in the
first place?
 

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

Back
Top