Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box to scroll thru a database
Message
De
22/03/2010 12:54:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01456119
Message ID:
01456190
Vues:
30
>>>If you want to use combobox as a navigation mechanism, use any rowsource except for fields and navigate to the selected record using seek or go to approach.
>>
>>
>>err well the seek approach errr when i add the code on interactive change
>>and changes the value of the combo box
>>it
>>the combo box disables itself..odd
>
>Don't use Fields as the recordsource for your combo, use something else. Also this combo should be unbound (empty controlsource).
i change it to SQL again also i had too unbound it...but now...:( it doesnt change the field values like 5 and 10 thou the combo box changes normally again


Also
lnpk=thisform.combo1.value
if seek(lnpk,'profit' ,'id')
thisform.refresh()
endif
profit being a table and id being a primary key
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform