Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating Listbox
Message
 
To
23/04/2001 09:31:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00498554
Message ID:
00498560
Views:
12
>I have a listbox that has the following properties:
>
>ControlSource = None
>RowSource = 'SELECT oecname FROM sales!oec INTO CURSOR tmpEditOwnerName ORDER BY oecname'
>RowSourceType = 3-SQL Statement
>
>On the same form I have a command button that brings up another form that allows the user to add a name to the
>oec table. When the user exits the 'add' form he/she is returned to the form containing the listbox. My problem is
>that I am unable to update the listbox to contain the new record. I have tried both requerying and refreshing the
>listbox to no avail. What am I missing?
>
>Thanks in advance for your help,
>Russell Clendenon


Have you updated the oec table.
If you use buffering and the record is not saved with tableupdate, the control won't see the new value.
Normally you can requery the combo.
If that doesn't work you may try to requery the tmpEditOwnerName cursor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform