Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing fields
Message
De
21/05/1997 11:21:36
 
 
À
20/05/1997 11:17:49
Holly Clawson
Travelcenters of America
Westlake, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00032681
Message ID:
00033093
Vues:
47
>>>>>I have a combo box that when adding a new record I hide the combo in display a textbox, the textbox is not clearing, it is keeping whatever was in the combo. All my other textboxes are clearing. Help why will these others not clear on a refresh command?
>>>>>
>>>>>Thank You
>>>>>
>>>>>Holly Clawson
>>>>
>>>>Ok, silly question here, what is the Control Source for the Textbox? What is the value of the Textbox? Same question for the ComboBox. Is there a tie between them, if so, what is it? (Can you tell that I've spent WAY too much time answering questions on the phone?)
>>>
>>>
>>>The ControlSource is the same for the combo and text box. The value is none for both of them.
>>
>>Ok, next set of questions. Is the control source a variable, or is it a field in the file. If a variable, are you sure you are setting it to blank ( or whatever it should be for a new record)?
>
>The ControlSource is the field in the table.

Ok....if I'm understanding this correctly:
ComboBox.ControlSource = file1.field1
TextBox.ControlSource = file1.field1
file1.field1 = [on insert]
but rather than TextBox.Value = , Textbox Value = ComboBox.Value

have you tried the "Bigger Hammer" method and on adding the new record set the Textbox.Value = ?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform