klsblues
Member
- Local time
- Today, 06:07
- Joined
- Aug 2, 2023
- Messages
- 48
I have a query that lists products and prices and a form that I use to print Various product price lists.
On a form, I select a product group and I can print off the current price list.
For certain purposes I want to include zero value sell price (it highlights to me that i need to add the price), but for the department list, I don't want to include the zero value records.
I have a form with a checkbox called "IncZeros" and in the query criteria i have tried the following combinations....
IIf([Forms]![frmMenuLabels]![IncZeros]=True,[ProductsSell],[ProductsSell]<>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=-1,[ProductsSell],[ProductsSell]<>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=True,[ProductsSell],[ProductsSell]>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=-1,[ProductsSell],[ProductsSell]>0)
If I select the checkbox [IncZeros] (True) all my records appear in the query which is great, however if I de-select the checkbox (False), it only shows records with zero values in the [SellPrice} field and no records with a price in the [SellPrice] field.
I know I could create separate queries and reports, but there are 7 queries and 12 reports and I don't particularly want to re-create them.
Any ideas would be gratefully recieved.
On a form, I select a product group and I can print off the current price list.
For certain purposes I want to include zero value sell price (it highlights to me that i need to add the price), but for the department list, I don't want to include the zero value records.
I have a form with a checkbox called "IncZeros" and in the query criteria i have tried the following combinations....
IIf([Forms]![frmMenuLabels]![IncZeros]=True,[ProductsSell],[ProductsSell]<>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=-1,[ProductsSell],[ProductsSell]<>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=True,[ProductsSell],[ProductsSell]>0)
IIf([Forms]![frmMenuLabels]![IncZeros]=-1,[ProductsSell],[ProductsSell]>0)
If I select the checkbox [IncZeros] (True) all my records appear in the query which is great, however if I de-select the checkbox (False), it only shows records with zero values in the [SellPrice} field and no records with a price in the [SellPrice] field.
I know I could create separate queries and reports, but there are 7 queries and 12 reports and I don't particularly want to re-create them.
Any ideas would be gratefully recieved.
Last edited: