OpelFruit
Computer
- Oct 16, 2002
- 2
I am currently using an ADO control with visual basic.
This piece of code is *supposed* to display the fields of ClickChoice (what i clicked in the list box) in another list box. However it seems I can't use the variable ClickChoice when trying to connect the DB (AdoFilterSearch.Recordset!ClickChoice) - since it wants the exact field name instead of ClickChoice (for example Title).
Any ideas on how I can put the variable in this piece of code?
This piece of code is *supposed* to display the fields of ClickChoice (what i clicked in the list box) in another list box. However it seems I can't use the variable ClickChoice when trying to connect the DB (AdoFilterSearch.Recordset!ClickChoice) - since it wants the exact field name instead of ClickChoice (for example Title).
Any ideas on how I can put the variable in this piece of code?
Code:
Dim ClickChoice
ClickChoice = AdoFilterSearch.Recordset.Fields(Index).Name
AdoFilterSearch.Recordset.MoveFirst
Do Until AdoFilterSearch.Recordset.EOF
'CboFilterBox(2).AddItem (AdoFilterSearch.Recordset!
ClickChoice)