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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Nil Order Quantities

Status
Not open for further replies.

LJtechnical

Technical User
Aug 7, 2002
90
GB
Hi

I have a report which shows the order data from a table but I would like the report not to include the order items that have a Zero order quantity. Is there some code I can use to hide these report records?

Thanks
 
Use a query for your report. Instead of opening the raw table, create a query to base your report on making sure that your order quantity is greater than zero e.g.

Code:
SELECT * FROM TableName WHERE OrderQuantity > 0

To create a query, click on the '...' button to the right of the RecordSource box in the Properties window.
 
Cheers for that! Havin one of those days where the blindingly obvious escapes me! Didnt even need to set up a query, just added the where condition to the data source property.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top