Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New entry for ComboBox
Message
De
23/09/2010 22:10:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
New entry for ComboBox
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01482502
Message ID:
01482502
Vues:
289
Hi,

A ComboBox lists entries from a related table ("Clients" in this case). In a different form, a new client is added. The new client should be selected in the first form. I managed to get the correct client selected - but it doesn't display correctly, until I exit the form and run it again. The ComboBox somehow isn't aware of the new record.

The ComboBox properties are:
RowSource = "Client.Name, City, ..."
RowSourceType = 6 - Fields

How can I force the ComboBox to refresh? Should I use a query instead of a list of fields instead; or what would the best strategy be?

TIA,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform