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!

Is there a way to only view an Acti

Status
Not open for further replies.
May 31, 2000
34
US
Is there a way to only view an Action button if a certain field has something (Text) in it.
 
You can, in the properties of the Action button, set the 'Hide when' option to Hide it if the field does not contain the text. For example if you wish to show the Action button only when a field named 'Bodytxt' contains text the 'Hide when' option would read:
Bodytxt = ""
and tick the 'Hide when' option.

Hope this is what you meant and it helps!

Ta
Kerrin
 
I am also doing the same thing, hiding a button unless a certain condition is true. So if the FIELD = "" | FIELD = 0 Then Hide, but when i change the condition (enter a number) the button does not appear. The form conditions say to automatically refresh fields, but NOTHING HAPPENS! What am I doing wrong?
 
lespaul

In the properties of the field that governs the Hide When condition, there should be an option on the 'Control' page call 'Refresh fields on keyword change'. If you select this, once the person has filled in the field, when they click anywhere outside of that field, the document will refresh and the button should disappear.

Hope that helps - let me know.

Ta
Kerrin
 
Kerrin, it appears that the keyword change is only valid for a list box and my field is a number so I don't have that option! Thanks anyway.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top