B
Brendan
I have two listboxes on a form which are called lstOne and lstTwo.
When the form is first loaded, lstOne contains all Categories from a
table and lstTwo is blank. I have set the list boxes so that when the
user double clicks the Category, it will go over to the other listbox.
When the user clicks the ok button i want the values in the second
listbox to be used in a query for the report.
Here lies the problem:
When trying to access Forms!frm_Category!lstTwo or lstTwo.value or
lstTwo.Column(0) I get an error saying that it is null. However,
since vbcode is used as the rowsource, I can do
Forms!frm_Category!lstTwo.RowSource and I get the following: Select
ID, Category from Category Where Category in (8,6,7) Order By Category
Asc.
Obviously, I had selected three values from the first listbox in this
instance, how would I go about parsing the RowSource so that I just
had the values 8,6,7?
Thanks
When the form is first loaded, lstOne contains all Categories from a
table and lstTwo is blank. I have set the list boxes so that when the
user double clicks the Category, it will go over to the other listbox.
When the user clicks the ok button i want the values in the second
listbox to be used in a query for the report.
Here lies the problem:
When trying to access Forms!frm_Category!lstTwo or lstTwo.value or
lstTwo.Column(0) I get an error saying that it is null. However,
since vbcode is used as the rowsource, I can do
Forms!frm_Category!lstTwo.RowSource and I get the following: Select
ID, Category from Category Where Category in (8,6,7) Order By Category
Asc.
Obviously, I had selected three values from the first listbox in this
instance, how would I go about parsing the RowSource so that I just
had the values 8,6,7?
Thanks