Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox-how to display a value not in the drop down list?
Message
From
21/08/2003 09:59:07
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
ComboBox-how to display a value not in the drop down list?
Miscellaneous
Thread ID:
00822167
Message ID:
00822167
Views:
57
I am in the process of writing a scheduler for jobs need to be run in the plant....

I use a grdlist, with my first column being a ComboBox.

The combobox's (column 1 of the grid) control source is the a view field. LV_SCHEDULED_ORDERS.cWorkOrderID. The drop down list of the combobox is an SQL statement that finds all cWorkOrderID'S from the WORKORDER table that are not yet "Scheduled".

Each workorder has a status within that table being either :{ "Processed", "Printed","Scheduled","Started"...."Finished",...etc.}.

Once a new workorder is "Scheduled" by selecting it from the Combobox within the grid the respective workorder is updated as such in the WORKORDER TABLE and therefore is automaticalluy removed from the drop down list of the combobox because the SELECT statement is re-run in the GotFocus event of the combobox.

My problem is this. Once a new cWorkOrderID has been removed from the drop down list AND even thought the cWorkorderID has updated in the SCHEDULED_ORDERS table AND is the ControlSource of the ComboBox the text of the ComBoBox does not display it since it is not in the drop down list anymore.

How can I force the correct value of cWorkOrderID IN SCHEDULED_ITEMS view to be displayed regardless if it is the drop down list anymore?????
Next
Reply
Map
View

Click here to load this message in the networking platform