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

Visible combo boxes set to NO

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I have quite a few Combo boxes on a form that are set VISIBLE:NO. I have code that changes them to be visible if a certain choice from another combo box is chosen

here is an example of one:
Code:
Private Sub CallType_Change()
If CallType.Value = "Other" Then Notes.Visible = True Else Notes.Visible = False
end sub

Everything works fine until going to a new record, the fields that are set to be VISIBLE:NO still show on the form. Is there code that i can add so that the form refreshes and the text or combo boxes go back to there set state of not being visible?

Thanks for any help

Paul
 
In the Current event procedure of the form:
Code:
Me!Notes.Visible = (Me![CallType] = "Other")
...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Or if you don't like PHV's shortcut, simply place your own code in the Form_Current event.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top