Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Add Item Problem
Message
De
07/11/1997 16:10:43
Carol Adler
U.S. Army Kwajalein
Apo, Iles Marshall
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00058529
Message ID:
00058998
Vues:
39
>First you need to change the control source to blank (not linked to the company field).
>
>Then when the user types a new item into the box you should add a record to the tdypers table with the new entry.
>
>Finally, requery the combo SQL and refresh the combo.

Got it fixed with your help! I had to keep the control source tied to the combo so I can go through the records and see what company a person is working for. However, since I am already in the midst of adding a new record, I do a replace of that field, then the recommended requery and refresh. It works, so I'll take it and run.

Also discovered that I was reading the wrong section in my much-loved and dog-eared VFP Form Designer book. AddItem only works with arrays, not tables.

Thanks for putting me back on track.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform