I have been trying to design a query that requires input from a form that I have create:
Here is the form see attachment form01.jpg
Here is the query that I am building see attachment query01.jpg
Here is the parameter that I am using for Product Name: This works this looking for the product that has a check mark to display that product in the query.
IIf([Forms]![FRMProductName]![Check8],"CHL1- Hamilton Adirondack Chair") Or IIf([Forms]![FRMProductName]![Check11],"CHL1- Hamilton Adirondack Chair- Two Tone")
Here is the parameter that I am using for the QTY01 - Expression Field:
QTY01: Switch([Forms]![FRMProductName]![QTY01]>=1,[Forms]![FRMProductName]![QTY01]*[TBL_Product]![BP01],[Forms]![FRMProductName]![QTY02]>=1,[Forms]![FRMProductName]![QTY02]*[TBL_Product]![BP01])
The problem that I am having is when I type in the QTY field the second box on the form and the first one has a value it is taking the first result and multiplying against the QTY01:Expression. I am hoping I am explaining it right.
I need some to point me in the right direction on how should I write the query I have banged my head at my desk for days on this issue.
Paul