ChrisLeicester
Member
- Local time
 - Today, 22:35
 
- Joined
 - Feb 14, 2025
 
- Messages
 - 64
 
Hi All 
I haven't really used Access much for a few years and must be rusty. I have also just upgraded from Access 2007 to Access 21 but don't think that is my issue.
I have a main form with a subform which in turn has its own subform.
Main form - purchaseOrderForm
1st Subform - purchaseordersubfm
2nd subform - purchaseitemsub
Set up because 1 supplier has many purchase orders which in turn one purchase order has many items.
I have a modal form which I am using for a selection form. It opens and has an unbound combo box where the supplier is selected and an action button where I want to open the main form filtered to the supplier chosen from the combo box.
In the event on click I have the macro to open this main form but it won't as it asks for a parameter.
In the where option of the macro, I have
[SupplierID]=form![selectsupplier]![supplierselected]
[SupplierSelected] being the name.of the combo box on the modal form
When run I get the error select parameter 'supplierselected' and it doesn't recognise the combo box entry.
Where am I going wrong.
Thanks
Chris
 I haven't really used Access much for a few years and must be rusty. I have also just upgraded from Access 2007 to Access 21 but don't think that is my issue.
I have a main form with a subform which in turn has its own subform.
Main form - purchaseOrderForm
1st Subform - purchaseordersubfm
2nd subform - purchaseitemsub
Set up because 1 supplier has many purchase orders which in turn one purchase order has many items.
I have a modal form which I am using for a selection form. It opens and has an unbound combo box where the supplier is selected and an action button where I want to open the main form filtered to the supplier chosen from the combo box.
In the event on click I have the macro to open this main form but it won't as it asks for a parameter.
In the where option of the macro, I have
[SupplierID]=form![selectsupplier]![supplierselected]
[SupplierSelected] being the name.of the combo box on the modal form
When run I get the error select parameter 'supplierselected' and it doesn't recognise the combo box entry.
Where am I going wrong.
Thanks
Chris