Okay, this is driving me crazy! I am trying to create a crosstab query using code. I keep getting the 'Syntax Error' message when trying to run this code:
dbs.CreateQueryDef "cqry- VOLUME", _
"TRANSFORM Sum([tbl VOLUME].[ACTL) AS [The Value]" _
& " SELECT [FINANCE NO], [OFFICE], [LINE]" _
& " FROM [tbl VOLUME] PIVOT [WEEK];"
Thanks for the help.
Richard...
dbs.CreateQueryDef "cqry- VOLUME", _
"TRANSFORM Sum([tbl VOLUME].[ACTL) AS [The Value]" _
& " SELECT [FINANCE NO], [OFFICE], [LINE]" _
& " FROM [tbl VOLUME] PIVOT [WEEK];"
Thanks for the help.
Richard...