Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create auto update combo box
Message
From
21/06/2002 08:53:40
 
 
To
20/06/2002 21:31:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00670040
Message ID:
00670988
Views:
30
Hello Tom.

i figure out if I put a check with the got focus it runs the customized event in the form at which it will refresh the combo and stuff... kinda works.

All you need in the GotFocus() of the dependent combo is this line:

This.Requery()

My point is that you do not need to keep re-setting the RowSource, RowSourceType, etc. This only needs to be done once, when the form is instantiated. The Requery() re-runs the SQL statement specified by the RowSource and refreshes the combo's internal list.

Now, why the ControlSource is not being updated is a separate issue and is not typical behavior.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform