Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you refer to a query field programmaticaly? 1

Status
Not open for further replies.

sera

Technical User
Jun 29, 2000
360
US
Hello,
I have created a command button that prints multiple reports. I pass the parameter to the query using forms![formname]![controlname]. I have four reports that are printed when the command button is clicked. Each report is driven by its own query, but they all use the same parameter. Sometimes there are only three reports that need to be printed....so the fourth report is printing blank. I need to check the value of the query(make sure it is not null) before I print the report, but for the life of me I don't know how? Thank you for your Help!
Sera
 
for the reports you don't want printed blank;

in the on no data create an event procedure:
Cancel = true

 
That worked! How easy! Thank you!
Sera
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top