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

Setting state of controls by record...?

Status
Not open for further replies.

Maldini

Technical User
Joined
Nov 10, 2002
Messages
55
Location
GB
Hi,
I know its possible to set the state of a form, so if condition A is true then I can set combobox A on enabled.

However, would just like to ask, is it possible not to apply this to the form forever? Rather, if my user were to cycle through the records with the default record selector bar (at the bottom of the form), I'd like the state to change.

So in record 1, condition A is true, so combo A is enabled.
But when the user goes to the next record, say record 2, if condition A is false, then I want combo B to be disabled.

In essence, I'm trying to get the states to change along with the record.

Any tips on how to do this? Thanks.
 
You're looking for the Form_Current() event. This will trigger every time you hit a new record (when the form loads, when using your wheelie mouse, etc). You can set all those properties in the Form_Current() event. --
Find common answers using Google Groups:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top