Hi. I have created a Main form that has 4-5 tabs on it. Each tab holds an embedded subform. Each of those subforms were created from Queries. Each subform is for data entry that goes into tables. When I embedded the subforms, I linked them with the primary key of the parent table and child tables, which I used ProjectID - because the main form was built from the projects table, which is the parent table, and the child tables have a ProjectID FK.
So the main form is bound to the Projects table. The first subform is bound to a table called “Products”. The second subform is bound to a table called “Transitions”.
It works GREAT thus far. Each tab displays the contents of a particular project’s items. IE: Tab 2 – Products subform, Tab 3 – Transitions subform, etc – shows all of the records for whichever Project I am viewing and gives the user the ability to ADD new entries. NOTE: I have it setup so where the user can filter his/her project in the Main form as an entry point. The product tab shows the different product records for the project, and the transition tab shows the different transitions for the project. I can use the records selector buttons to navigate the items for the Filtered Project I selected.
I have one problem that I cannot seem to figure out. In the Transitions subform, there is a combobox that the user can pick a Product from, bound to the Product table. I would like to filter the “Product” combobox I have in the Transitions subform that only apply to the Project I am viewing. This is because, after the user enters a new product in the Product Subform, that Product should be available in the Product combobox in the Transitions Subform – which it is - except the user has to scroll down in the combobox to look for the product he/she just entered in the previous subform tab. How can I filter a combobox in a subform that should only display the Products for the specific Project being filtered, so the user wont have to go through hundreds of combobox choices? IE: Project A only has 5 products associated with it, but the user can see all 100 products in the combobox stored in the products table – which isnt what I want.
I went through multiple threads with a similar issue like mine, but they removed the example database attachments and I cant see how exactly they were able to do it. I tried changing the parent/child links in the subform, but doesn’t work.
Tried to follow this thread but was not clear to me how he was able to do it.
Hope this makes sense – thanks for any help!