Prevent report from running if a field is null

R

Randy

Access 2000. I would like to prevent a report from running if an individual
field in the report is blank/Null. The fields name is: [DateIssued] I'm
sure there is an easy way to do this. Any help please.
 
M

Marshall Barton

Randy said:
Access 2000. I would like to prevent a report from running if an individual
field in the report is blank/Null. The fields name is: [DateIssued] I'm
sure there is an easy way to do this.


Normally, that is done by using a criteria in the report's
record source query. Then the report can be canceled if
there is no data for the report to process.
 
D

Dale Fye

Another method is to check to see if that value is NULL before opening the
report. The down side of this is if the query is complicated, you could
actually have to run it twice (once to test for null, the other to open the
report).

Occassionally, I'll disablet the report preview button until certain
criteria are met. This might be one of those cases. To do that, I create a
subroutine on my form which I evaluate in the AfterUpdate event of those
controls that affect whether the button is enabled.

HTH
Dale
 

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