Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Listbox
Message
 
À
23/04/2001 09:31:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00498554
Message ID:
00498560
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform