N
Neil
Hello,
Been trying to figure this one out for a while now.
I have a query which lists all available items for a product. These are
displayed in a ListBox on an unbound form. What I was hoping to do was to be
able to filter the items the user has selected and add these to a new table.
Adding to a new table is the easy bit but filtering the records is not. The
listbox's bound column is the primary key value used in the query. The
english for my query that i want is:
return all records in my query where the RecordID is in the listbox's
selected items.
I know it will be something like SELECT MyFields FROM MyQuery WHERE RecordID
IN ListboxSelectedItems
I dont know how to write this in SQL using the correct syntax and which
property or properties of the listbox i need to use to get the selected
items only.
Can any body help?
TIA,
Neil.
Been trying to figure this one out for a while now.
I have a query which lists all available items for a product. These are
displayed in a ListBox on an unbound form. What I was hoping to do was to be
able to filter the items the user has selected and add these to a new table.
Adding to a new table is the easy bit but filtering the records is not. The
listbox's bound column is the primary key value used in the query. The
english for my query that i want is:
return all records in my query where the RecordID is in the listbox's
selected items.
I know it will be something like SELECT MyFields FROM MyQuery WHERE RecordID
IN ListboxSelectedItems
I dont know how to write this in SQL using the correct syntax and which
property or properties of the listbox i need to use to get the selected
items only.
Can any body help?
TIA,
Neil.