Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to default the combo box value from the Table?
Message
From
01/12/2005 03:13:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to default the combo box value from the Table?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01073581
Message ID:
01073581
Views:
66
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
Next
Reply
Map
View

Click here to load this message in the networking platform