S
Steve
Folks,
I am opening a recordset in the code for a report, and because it is a
crosstab I have an sql query as the record source. I copied and pasted the
sql code from the SQL view of the query (which runs fine) to the code
itself. The problem is that when the code runs, the query returns only one
row!
Here is the sql code:
TRANSFORM Sum([Master Report].Qty) AS SumOfQty
SELECT [Master Report].SysPartNo, [Master Report].Application, [Master
Report].Market, [Master Report].Product, [Master Report].caption
FROM [Master Report]
GROUP BY [Master Report].SysPartNo, [Master Report].Application, [Master
Report].Market, [Master Report].Product, [Master Report].caption
ORDER BY [Master Report].Product
PIVOT [Master Report].Dimension;
Where Master Report is a select query.
Anyone have any ideas??
Thanks!
I am opening a recordset in the code for a report, and because it is a
crosstab I have an sql query as the record source. I copied and pasted the
sql code from the SQL view of the query (which runs fine) to the code
itself. The problem is that when the code runs, the query returns only one
row!
Here is the sql code:
TRANSFORM Sum([Master Report].Qty) AS SumOfQty
SELECT [Master Report].SysPartNo, [Master Report].Application, [Master
Report].Market, [Master Report].Product, [Master Report].caption
FROM [Master Report]
GROUP BY [Master Report].SysPartNo, [Master Report].Application, [Master
Report].Market, [Master Report].Product, [Master Report].caption
ORDER BY [Master Report].Product
PIVOT [Master Report].Dimension;
Where Master Report is a select query.
Anyone have any ideas??
Thanks!