Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Events
Message
De
20/11/2000 13:39:01
Ray Keys-Bramlett
Custom Business Applications
Fresno, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Combo Box Events
Divers
Thread ID:
00443740
Message ID:
00443740
Vues:
38
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform