Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Events
Message
From
20/11/2000 13:39:01
Ray Keys-Bramlett
Custom Business Applications
Fresno, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combo Box Events
Miscellaneous
Thread ID:
00443740
Message ID:
00443740
Views:
33
I have two controls that work together

1) A Combo Box which has a field in a table as a ControlSource
2) A Grid which displays information based on a query of information using
the same table.

When I change the value in the Combo Box, I want the Grid to requery the table and show the results.

The refresh method of my grid contains the code to:
Set the recordsource to ''
redo the query
reset the recordsource to the result of the query

I have tried to place code in both the VALID and the LOSTFOCUS of the combo box to either refresh the grid, or to refresh the form. The form will not refresh unless I select the same value in the Combo Box twice.

I have added a refresh button to the screen, which will force it to refresh the form. This works, but it is not correct.

My uneducated guess is that the Combo Box has not yet updated the database by the time I tell the Valid to refresh. I am probably way off base.

Any ideas?

Thanks for your help.
Next
Reply
Map
View

Click here to load this message in the networking platform