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

show/hide field on report 1

Status
Not open for further replies.

ajking

Technical User
Aug 13, 2002
229
Is it possible to show/hide a field (xyz) in a report depending on the value in that field?
e.g. field(xyz) has text then field(xyz) is made visible else if field (xyz) is blank then field(xyz) is hidden TIA

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
I think you want to show/hide a control such as a text box, not a field. If a text box is bound to a Null value then it generally doesn't display unless you have the border or background set to something other than transparent. I'm not sure why you need to hide something you can't see. Maybe you only need to set its Can Shrink property to Yes.


Duane MS Access MVP
 
Hi Duane, thanks for the swift reply.
Sorry, I realise now that my description was somewhat ambiguous
What I want do do is: if a particular field [xyz] in the query that the report gets its data from is true, then I want to hide a textbox on the report else if xyz is false the the textbox is shown
Hope that clarifies the situation.
regards
Alan


'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top