Can someone help me correct what is wrong with these letters in the SQL syntax below:
(1) "D" & "C3" line 16
(1) "D" & "C3" line 16
SELECT
DISTINCTROW tblProducts.ProductID,
tblProducts.ProductName,
tblProducts.BarCode,
tblSalesTax.TaxClass,
tblPricing.Prices,
tblPricing.RRP,
tblSalesTax.VatRate,
tblSalesTax.Tourism,
tblSalesTax.Insurance,
tblSalesTax.TourismLevy,
tblPricing.TaxInclusive,
tblSalesTax.InsuranceRate,
tblSalesTax.InsuranceRate AS Premium,
IIf(
([TaxClass] = "D"),
Round(
IIf(([TaxClass] = "D"), [Prices],([Prices] / 1.16)),
2
),
Round(
IIf(([TaxClass] = "C3"), [Prices],([Prices] / 1.16)),
2
)
) AS ExportPrice,
tblPricing.NoTaxes,
tblProducts.Sales
FROM
tblSalesTax
INNER JOIN (
tblProducts
INNER JOIN (
tblcartergory
INNER JOIN tblPricing ON tblcartergory.CartID = tblPricing.CartID
) ON tblProducts.ProductID = tblPricing.ProductID
) ON tblSalesTax.IDClass = tblPricing.IDClass
WHERE
(((tblProducts.Sales) = Yes))
ORDER BY
tblProducts.ProductID DESC;