Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coordinating Dropdown with buttons
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00169597
Message ID:
00169644
Views:
24
>>I have a simple form with a drop down list box (used to select the customer number), two command buttons (next and previous) and a couple text boxes to show the customer info.
>>
>>If I use the dropdown to select the customer number, it displays the proper record info in the text boxes (by using Thisform.refresh in the mouse click event of the dropdown).
>>
>>Similarly, if I use the cmd buttons, it moved through the records, displaying the text info for each record - but the drop down does not follow......in fact, it remains blank. Any suggestions??
>>
>>TIA,
>
>The ListItemID property should control what is highlighted - try that out.

Perhaps I wasn't sufficiently clear in my first post. Let me add a little more (since as I understand it, the ListItemID isn't the key here).

The dropdown's RowSource is the customer info table and the RowSourceType is 6 (a list of fields - specifically, it has 2 columns: CustNo and CustName). I can select the CustNo with the dropdown, and it then fills the text boxes (CustName, CustAddr, etc) with no problem.

I also have cmdbtns "Next" (which has a ClickEvent of skip 1) and "Previous" (ClickEvent is skip -1. When I use either of the buttons, the text fields are refreshed with the next or previous records information. But the CustNo that appears in the dropdown does NOT refresh. I have even tried addin ThisForm.Combo2.refresh to the cmdbtns click event.

With puzzled regards,
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform