Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox RecordSource Options
Message
De
07/10/1998 23:38:18
Jim Underwood
Apollo Information Systems, Inc.
Houston, Texas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00144858
Message ID:
00144888
Vues:
27
Hi Jim,

>In the cboCity combobox set the rowsourcetype to SQL but leave the rosource empty. In the Requery method of cboCity put code like this;

>Then from the when or interactivechange of the cboState simply;
>
>THISFORM.cboCity.Requery()

Two Questions please:

1. Are you sure about putting the code in the WHEN of cboState? At that point cboState hasen't changed, right? Also, wouldn't it be better in the LostFocus than in the InteractiveChange?

2. Do I gather correctly that it is better to use the .value rather than the control's ControlSource in the WHERE clause of the cboCity RowSource? Can you share the pros/cons of both approaches?

Many thanks,
jmu
Best Regards,

Jim Underwood
Apollo Information Systems, Inc.
Houston, TX
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform