What "Event" should I use? (1 Viewer)

chappy68

Registered User.
Local time
Today, 01:46
Joined
Aug 15, 2011
Messages
76
I have an unbound combo box in the header. I have a tab control in the detail section and everything is (by default), set to visible = no. When a record is selected in the combo box, code runs that makes the tab control visible. I also have a field in the tab control if "yes", page 3 is visible, if no, page 3 is not visible.

My question is which "event" do I use so that when the user selects the unbound combo box again (without closing the form), page 3 is reset to not visible and the code runs the logic again? Should I use "On Got Focus", "On Change", "On Click"? I am so confused.

Please help.
 

chappy68

Registered User.
Local time
Today, 01:46
Joined
Aug 15, 2011
Messages
76
Perhaps the following links will help you decide the event that will produce the results you are after.

GotFocus, Change, Click

Unfortunately I don't understand these descriptions as well as I would like. After reading the items you suggested, (thanks btw) it appears I would want to use the "OnChange" event. I created my code for the OnChange event and it seems to work.

Appreciate the guidance on where to look.
 

Users who are viewing this thread

Top Bottom