Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto-select from a combobox?
Message
From
17/03/2000 20:10:22
 
 
To
16/03/2000 18:11:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00345641
Message ID:
00347371
Views:
21
>>I'm having two comboboxes on a form. The user as to selects from the first combobox.
>>
>>The second combobox is populated depending on what was chosen in the first combobox. There are times when there is only one thing to select from the second combobox.
>>
>>How can I make that selection from that combobox automatic so that the user does'nt have to click on that combobox when there is only one item to be selected from that second combobox?
>
>When you programmatically load the second combo, set it's value to the default value. There you go.
>
>In the interactive change of cboONE
>
>SELECT * ;
>FROM tblTWO ;
>WHERE tblTWO.Column = cboOne.Value ;
>INTO CURSOR curTWO
>
>cboTWO.RowSource = "curTWO"
>
>cboTWO.Value = [Insert the value here]
>
>How you arive at the value for cboTWO is another problem because I expect it could be different depending on the value selected in cboONE.
>
>Hope this helps ...
>
>J.

Thanks Jason
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Reply
Map
View

Click here to load this message in the networking platform