Hi all,
I've been browsing for a while now and can't figure out the solution to my problem.
I have query qryStatic returning records of transactions for various staff members from a number of combined tables. The query contains field StaffID
I have another table containing StaffID and StaffName, with a relationship between the StaffID of the table and query.
I want to have a list box with multi select = simple. Users select StaffName, click button, and run the query which displays records for selected staff.
So far I have the list box set up, with the criteria of my query looking at the list box. This works fine as long as I'm not selecting more than one record. As soon as I do, the query returns nothing.
I know I need to code something to tell it to return the records for the staff selected, but I don't know what the code is.
I'm so close, yet so far! It's killing me!
Any ideas?
Cheers.
I've been browsing for a while now and can't figure out the solution to my problem.
I have query qryStatic returning records of transactions for various staff members from a number of combined tables. The query contains field StaffID
I have another table containing StaffID and StaffName, with a relationship between the StaffID of the table and query.
I want to have a list box with multi select = simple. Users select StaffName, click button, and run the query which displays records for selected staff.
So far I have the list box set up, with the criteria of my query looking at the list box. This works fine as long as I'm not selecting more than one record. As soon as I do, the query returns nothing.
I know I need to code something to tell it to return the records for the staff selected, but I don't know what the code is.
I'm so close, yet so far! It's killing me!
Any ideas?
Cheers.