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!

How to hide a field only if its at a set value?

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Hey,

I have a purchase order report that comes off. It has 10 rows allowing for a total of 10 purchaes on one order. If a user only purchases say 4 items, the fields on the reports still show a "0" figure for the fields that have a currency or number format. Is there anyway to stop the report from showing these fields unless they are above "0"?

Thanks,

Steve Hewitt
 
Let's say the field in question is called Text1 - find the relevant report section's OnFormat event and add the following line of code:
Code:
Text1.Visible = (Text1 > 0)

Hope this helps.

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top