Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to default the combo box value from the Table?
Message
De
01/12/2005 03:13:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to default the combo box value from the Table?
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01073581
Message ID:
01073581
Vues:
67
Hi,

I have a combobox on a form to select the Warehouse which have the properties as follow:-

Bound To is TRUE
ControlSource is WAREHOUSE.WH_ID
RowSource is WAREHOUSE.WH_ID, WH_NAME
RowSource Type is 6-FIELDS

There are 5 records in the WAREHOUSE table, but I want to default the record
3 as default display value when the form start.

The Combobox display sort by following order.
WH_ID WH_NAME
1 Warehouse A
2 Warehouse B
3 Warehouse C
4 Warehouse D
5 Warehouse E

I try put the LOCATE FOR... command in the INIT event of the combobox, but the result not success.

Please advise.

Derek Yim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform