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

Write label only if value exist

Status
Not open for further replies.

hlubpc09

Technical User
Jan 13, 2009
10
I would like to display the label of a field name only if the value of the field name exist. Can it be done in Access? If yes, how?

Lots of Thanks! :)
 
Is this the label on the form, report???
Using VBA, an if statement in the right place can make the item show with the .visible statement.

 
Just replace the label with a text box having a control source like:
="Caption Value " + [Field Name]
Make sure the control can't expand and don't display any wider than "Caption Value ".

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top