Hi all, I seem to be getting this error when I try to import a query from MS Access to Excel:
Now, it runs fine in Access and seems to be a Microsoft Query problem, I know there are some issues around the performance and capability of Microsoft Query but hopefully someone can have a look at my query and see if they can identify my "too few parameters"
(Sorry about the largeness of the query...)
Thanks!
Too Few Parameters. Expected 1.
Now, it runs fine in Access and seems to be a Microsoft Query problem, I know there are some issues around the performance and capability of Microsoft Query but hopefully someone can have a look at my query and see if they can identify my "too few parameters"

(Sorry about the largeness of the query...)
Code:
SELECT YPOL_LoadTbl.[Channel Done], YPOL_LoadTbl.[Canvass Code], Sum(YPOL_LoadTbl.[Handl Nisd Amt]) AS [SumOfHandl Nisd Amt], YPOL_LoadTbl.[Issue ID]
FROM YPOL_LoadTbl
GROUP BY YPOL_LoadTbl.[Channel Done], YPOL_LoadTbl.[Canvass Code], YPOL_LoadTbl.[Issue ID]
UNION
SELECT "ALL" AS [Channel Done], "ALL" AS [Canvass Code], Sum(YPOL_LoadTbl.[Handl Nisd Amt]) AS [SumOfHandl Nisd Amt], YPOL_LoadTbl.[Issue ID]
FROM YPOL_LoadTbl
GROUP BY YPOL_LoadTbl.[Issue ID]
UNION
SELECT YPOL_LoadTbl.[Channel Done], "ALL" AS [Canvass Code], Sum(YPOL_LoadTbl.[Handl Nisd Amt]) AS [SumOfHandl Nisd Amt], YPOL_LoadTbl.[Issue ID]
FROM YPOL_LoadTbl
GROUP BY YPOL_LoadTbl.[Channel Done], YPOL_LoadTbl.[Issue ID]
UNION
SELECT YPOL_LoadTbl.[Channel Done], "ALL" AS [Canvass Code], Sum(YPOL_LoadTbl.[Handl Nisd Amt]) AS [SumOfHandl Nisd Amt], YPOL_LoadTbl.[Issue ID]
FROM YPOL_LoadTbl
GROUP BY YPOL_LoadTbl.[Channel Done], YPOL_LoadTbl.[Issue ID]
UNION
SELECT "ALL" AS [Channel Done], YPOL_LoadTbl.[Canvass Code], Sum(YPOL_LoadTbl.[Handl Nisd Amt]) AS [SumOfHandl Nisd Amt], YPOL_LoadTbl.[Issue ID]
FROM YPOL_LoadTbl
GROUP BY YPOL_LoadTbl.[Canvass Code], YPOL_LoadTbl.[Issue ID];
Thanks!
Last edited: