Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mark LaBarre
  Where is Mark LaBarre?
 Rockville
 Maryland - United States
 Mark LaBarre
 Tags
Subject: No Refresh when typing into Combo Box
Thread ID: 345066 Message ID: 345066 # Views: 34 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, May 17, 2012 7:09:36 PM         
   


Hi gurus,

I created a form with a combo box to select a part ID from a list. Another field on the form contains the price for the selected part. When the part ID is selected from the dropdown, the price syncs to the part ID immediately -- as desired.

However, the client wants to be able to type the part ID directly into the field as another option. No problem -- except when they do that, the price doesn't update. It only updates when the user clicks on the text box that actually holds the price.

I tried to force the price field to update by putting a ThisForm.Refresh in the Part ID combo box's InteractiveChange method. When it still didn't sync, I prepended it with another specific line to set the price field's ControlSource to the price field just like it's already set as the default. Of course with this approach, I didn't expect it to work until I finished typing the Part ID because it wouldn't find a complete match. But even then, the price field still only updates by clicking inside of it.

Can't figure out how to get the cost field to update automatically when typing the part ID instead of choosing the part ID from the dropdown. Guidance appreciated, thanks!

ENTIRE THREAD

No Refresh when typing into Combo Box Posted by Mark LaBarre @ 5/17/2012 7:09:36 PM
RE: No Refresh when typing into Combo Box Posted by Tamar Granor @ 5/17/2012 10:27:53 PM