Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box Bug.
Message
From
30/07/1998 19:50:23
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00110837
Message ID:
00122905
Views:
38
>>When I display a record which points to contact #5 of the agency and then display a record which has an agency w/ only 2 contacts, I get a record out of range error when the contact refreshes. Another thing that happens is that sometimes the contact combo displays the contact when a different parent is displayed, sometimes it is blank until you tab through it twice. (or tab, shift-tab).
>>
>>Have you run into this before?
>
>Cheryl,
>
>What you are running into is an event sequence problem. You move to another record, the combo for agency changes its value, but the combo for contacts is still populated from the last agancy. In the programmaticchange event of the agency you need to call the contact combo's requery so it will update its list.


Thanks, Jim, that helped.

I am using views so as to be able to use VFP or SQL Server. The view must be requeried using the new parameter value for agency (agency combo must be refreshed after parent requery), THEN the combobox must be requeried, and finally the combobox refreshed. Whew!

Cheryl
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform