Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box that won't enable
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00020482
Message ID:
00020499
Views:
30
>I have a form that uses a combo dropdown list to allow users to select items from a lookup table to populate the current tables foreign key. But I noticed that when the current table is empty, the combo box is not accessible even though a quick check of its .enabled property reveals the value to be .t. I've checked the .listcount of the combo and it shows the number of available choices from the lookup table to which the combo's recordsource points. But once the current table has an existing record before the form containing the combo is opened, the combo works fine. Waht could be wrong?

Hi Gerry,

AFAIK, this a by design behavior. When the record pointer of a table is on EOF (this is always true with an empty table) all controls bounded to its fields become disabled. I think this is what's happening with your combo box. The only way i know to avoid this, is to not bound the control to a table's field (i.e. not having a controlSource for your combo). But then u will have to take care to update yourself the correct values, from the combo to the table and viceversa.

HTH,

J. Luis
J. Luis Santiago Rodríguez.• CADIS • E-mail: jlsantiago@iserve.net.mx• Ciudad de México.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform