Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a DataListbox move its binded recordset ?
Message
 
À
26/04/2002 14:14:49
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00649517
Message ID:
00649751
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
This is how it works. Let's say your recordset has two fields MyCode and MyDesc. You are displaying the MyDesc on the listbox for the user but internally you need the MyCode field to store in your tables.
You will need to set the following properties for your listbox:
RowSource --> MyRecordset
ListField --> MyDesc
BoundColumn --> MyCode

When the user selects an item in your listbox this is what you get:
listbox.Text: returns the contents of MyDesc field of the selected item
listbox.BoundText: returns the contents of MyCode field of the
selected item


Hope this will answer your question.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform