Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Add Item Problem
Message
From
07/11/1997 16:10:43
Carol Adler
U.S. Army Kwajalein
Apo, Marshall Islands
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00058529
Message ID:
00058998
Views:
33
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform