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!

visible or not 1

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I have a form with a lot of buttons. A few text fields are not feed by a query or table but with the value of a button.
However one textfield is dependent of a value of the table.
"Emballage"
"Emballage no"

I set a drop down list with get the actual value "Emballage (no). I get the value. But depending of this value he should set visible or not a textbox. I don't know on with action or event to let work my if statement. I tried many event. Or other ideas.
 
Found, set it in the function of a button. The dropdown box is set to hide (not visible).

Code:
If Forms!F01_ORDER!txtBAKGEEN.Column(1) = "NO EMBALLAGE" Then
Forms!F01_ORDER!txtBAK.visible = False
Else
Forms!F01_ORDER!txtBAK.visible = True
End If
 
A shorter way:
Forms!F01_ORDER!txtBAK.Visible = (Forms!F01_ORDER!txtBAKGEEN.Column(1) <> "NO EMBALLAGE")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top