

InterviewSolution
1. |
Solve : Another Access Problem ..? |
Answer» Ok, hopefully this one will be MUCH easier to answer! I can't work out what the extension is for the actual values in the first Listbox. I can Add ListIndex of the selected product into the second ListBox, but not the actual text itself When writing code, after typing an object name followed by a dot, do you not get a list of properties and methods appearing in a popup box? You may have to play around with these. Listboxes have no Text property but do have a Value and a ItemData property. I feel as though I've tried all of them. ItemsSelected, Select, Value, ListIndex, List, Column. I'll try some others but It feels hopeless Not too thrilled with this SOLUTION but it worked. I didn't find out how to reference field names in Access, so I took the easy way out and used the table column index Code: [Select]Private Sub List14_DblClick(Cancel As Integer) List16.AddItem (List14.Column(1)) End Sub You may have to play around with the index depending on your table layout. Note that the index is zero based. It's not very pretty but it's serviceable. The _DblClick event seemed more logical to me...but feel free to change it. |
|