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!

hide field on report based on value

Status
Not open for further replies.

pdtit

Technical User
Nov 4, 2001
206
BE
Hey,
I have the following question on a report to print out :

My report is in fact a ticket from a POS-system (6cm)

Is it possible to hide a field from my report if the value in this field is 0 ? (it is the price-field, format as Currency)

Regards,

Peter
 
In the On Format event of the section where Price appears, put logic like this:
Code:
If Me.Price = 0 Then
  Me.Price.Visible = False
Else
  Me.Price.Visible = True
End If
 
Splendid.

I was thinking and thinking and thinking, but could't see the light anymore...

I never thought it was that simple.

Even by reading the code, I already knew it would work.

Thx a lot,

PdtIt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top