S
Scott B
Good Morning,
I am trying to create a calculated field in a report that creates a sales
tax report (driven by a query). I have to report tax exempt sales, but I do
not include them in the taxable gross sales for sales tax purposes. So
something like =SUM([TotalSales]) (TotalSales is a calculated field from a
query) will not work. I need to do something like: =Sum([TaxExempt] for
[TaxExempt] = False to get only the taxable sales. I am currently trying
to use DSUM. Here is my ltest iteration which is returning #ERROR:
=DSum("[RoomTotal]","[qrySalesTax]","[TaxExempt] = 'No' ")
[RoomTotal] = Calc. Control on query. [qrySalesTax] = Query with Calc.
control. [TaxExempt] = check box from Query: qrySalesTax.
I would be very grateful if someone could guide me to the mistake in my
syntax or my choice of a function.
Thanks in advance,
Scott B
I am trying to create a calculated field in a report that creates a sales
tax report (driven by a query). I have to report tax exempt sales, but I do
not include them in the taxable gross sales for sales tax purposes. So
something like =SUM([TotalSales]) (TotalSales is a calculated field from a
query) will not work. I need to do something like: =Sum([TaxExempt] for
[TaxExempt] = False to get only the taxable sales. I am currently trying
to use DSUM. Here is my ltest iteration which is returning #ERROR:
=DSum("[RoomTotal]","[qrySalesTax]","[TaxExempt] = 'No' ")
[RoomTotal] = Calc. Control on query. [qrySalesTax] = Query with Calc.
control. [TaxExempt] = check box from Query: qrySalesTax.
I would be very grateful if someone could guide me to the mistake in my
syntax or my choice of a function.
Thanks in advance,
Scott B