Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box that won't enable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00020482
Message ID:
00020500
Vues:
36
>>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

Dear Luis,

Thanks for the enlightenment. I guess I may just have to do some workaround again to my problem.

Gerry L.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform