F
fhurman via AccessMonster.com
Hello, I have the following code in an SQL statement (pulling from one table)
and I'm getting a Syntax error in Union query message. Any help please?
Thanks in advance.
SELECT [Sales & Chargebacks by customer].[Prod Family Name], Sum([Sales &
Chargebacks by customer].[Invoice Sales]) AS [Invoice Sales], Sum([Sales &
Chargebacks by customer].[Invoice Sales Qty]) AS [Invoice Sales Qty] INTO
[TEMP Gross Sales] FROM [Sales & Chargebacks by customer] WHERE (([Sales &
Chargebacks by customer].[Fiscal year/period]) >= #1/1/2001# And ([Sales &
Chargebacks by customer].[Fiscal year/period]) <= #12/31/2003#) GROUP BY
[Sales & Chargebacks by customer].[Prod Family Name] HAVING (([Sales &
Chargebacks by customer].[Prod Family Name])='klonopin wafers')
and I'm getting a Syntax error in Union query message. Any help please?
Thanks in advance.
SELECT [Sales & Chargebacks by customer].[Prod Family Name], Sum([Sales &
Chargebacks by customer].[Invoice Sales]) AS [Invoice Sales], Sum([Sales &
Chargebacks by customer].[Invoice Sales Qty]) AS [Invoice Sales Qty] INTO
[TEMP Gross Sales] FROM [Sales & Chargebacks by customer] WHERE (([Sales &
Chargebacks by customer].[Fiscal year/period]) >= #1/1/2001# And ([Sales &
Chargebacks by customer].[Fiscal year/period]) <= #12/31/2003#) GROUP BY
[Sales & Chargebacks by customer].[Prod Family Name] HAVING (([Sales &
Chargebacks by customer].[Prod Family Name])='klonopin wafers')