M
merry_fay
Hi,
I'm using a 'simple' selection list box with multiple columns as criteria
for a query running on my form.
I've written the code:
For Each vItm In Me.lstBud.Column(0).ItemsSelected
strWhat = strWhat & "'" & Me.lstBud.Column(0).ItemData(vItm) & "', "
Next vItm
For Each vItm In Me.lstBud.Column(3).ItemsSelected
strWhat1 = strWhat1 & Me.lstBud.Column(3).ItemData(vItm) & ", "
Next vItm
(column(0) is text & column(3) is not)
but it's coming up with the error Run-time error '424': Object Required in
relation to 'Me.lstBud.Column(0).ItemsSelected'
Is there a way to use data from different columns in a list box as criteria
when multi-select is used?
Thanks
merry_fay
I'm using a 'simple' selection list box with multiple columns as criteria
for a query running on my form.
I've written the code:
For Each vItm In Me.lstBud.Column(0).ItemsSelected
strWhat = strWhat & "'" & Me.lstBud.Column(0).ItemData(vItm) & "', "
Next vItm
For Each vItm In Me.lstBud.Column(3).ItemsSelected
strWhat1 = strWhat1 & Me.lstBud.Column(3).ItemData(vItm) & ", "
Next vItm
(column(0) is text & column(3) is not)
but it's coming up with the error Run-time error '424': Object Required in
relation to 'Me.lstBud.Column(0).ItemsSelected'
Is there a way to use data from different columns in a list box as criteria
when multi-select is used?
Thanks
merry_fay