Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box to scroll thru a database
Message
 
 
À
22/03/2010 11:18:11
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:
01456129
Vues:
27
>>>hello!
>>>i knwo the code to scrool thru a table like
>>>
>>>if not eof()
>>>skip 1
>>>etc etc
>>>
>>>but im trying to use a combo box
>>>lets say i hav a CB with 2 values A and B. A is 5 and B is 20
>>>when i load the form A shows me a value of 5...in a text box but when i select B 20 doesnt show. :(
>>>should i change to...a scroll bar?but i wanted to be able to see the choces
>>
>>I think you need to re-state your problem in a way others can understand. May be you need to go to the record with that primary key, e.g.
>>
>>lnPK = thisform.myCombo.value
>>if seek(lnPK, 'myTable', 'myPKTag')
>>   thisform.refresh()
>>endif
>>
>
>oh
>uhum
>if i use a scroll bar i know how to move thru my table granted it has two fields and 4 values like
>table
>
>A   5
>B   10
>
>but im trying to use a combo box so when i select A my fields get 5 and B gives me 10
>when i init the form the field gets 5 but i dont get 10 upon the selection of B

Re-read my reply one more time and also post how did you setup your comobox (what is its rowsourcetype and rowsource).
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform