Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get the right record to show?
Message
From
15/02/2008 16:22:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01293068
Message ID:
01293089
Views:
15
I did two things, which appear to have taken care of the problem

(1) There was a controlsource on the combo which referred to the actual field in the table. I replaced that with a form property.

(2) I also did a requery on the combo as part of the "add" command button.

In combination, these seem to have taken care of the problem.



>>Naomi --
>>
>>That's exactly what I thought. That's not what's happening. And, the controls on this form are VERY simple -- nothing special going on behind the scene.
>>
>>Without using refresh -- the fields other than the combo show the old values, but you see the correct values when you click on the field. This I expected. The combo box still shows the original record, but does not change to the correct value when I click on it.
>>
>>When I DO use refresh -- the fields all show what had been the last record before I added a new record. Except the combo box, which is blank (but goes to that record when I click on it.)
>>
>>Curious, eh?
>
>What if you remove the combo for some time? Would it work?
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform