Hi,
I am currently working on a database that register recieved packages. I have a registration form (main form linked with a subform).
In FormA i have a listboxA containing "FormA_ID (primary key)", "arrived_date" and "Lot_number". In FormB i have a listboxB containing "FormA_ID", "type" and "serial_number".
The relationships between these tables are working good.
My problem:
I want to filter the items shown in listboxB (subform) based on the selection the user makes in listbox A (mainform). For example if the user in listboxA picks a package that arrived on a specific date, I want listboxB to show only the items contained in that selected package. Right now listboxB show all items in all the different packages.
I have searched all over and tried different WHERE conditions, but i cannot make this work.
Can someone out there please give me a helping hand? :banghead:
I am currently working on a database that register recieved packages. I have a registration form (main form linked with a subform).
In FormA i have a listboxA containing "FormA_ID (primary key)", "arrived_date" and "Lot_number". In FormB i have a listboxB containing "FormA_ID", "type" and "serial_number".
The relationships between these tables are working good.
My problem:
I want to filter the items shown in listboxB (subform) based on the selection the user makes in listbox A (mainform). For example if the user in listboxA picks a package that arrived on a specific date, I want listboxB to show only the items contained in that selected package. Right now listboxB show all items in all the different packages.
I have searched all over and tried different WHERE conditions, but i cannot make this work.
Can someone out there please give me a helping hand? :banghead: