Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get the right record to show?
Message
De
15/02/2008 16:22:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01293068
Message ID:
01293089
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform