A
antonette
Are there hidden characters added by Acess into queries?
I am trying to return the sum of the [sell price] column created by a
temporary table. I'm using Access 2000, Win2k, and generated the
following syntax by using the design grid and typing into the SQL
window:
SELECT Sum([%$##@_Alias].sumsell) AS SumOfsumsell
FROM [SELECT [Bangkok Purchase Order].[sell price] as sumsell,
[Bangkok Purchase Order].bycore
FROM [Bangkok Purchase Order]
WHERE ((([Bangkok Purchase Order].poid)=58))
GROUP BY [Bangkok Purchase Order].[sell price], [Bangkok Purchase
Order].bycore]. AS [%$##@_Alias];
This returns the desired result. If I go back to it however, and
simply add a space to the end of the first line and delete it, I get a
"Syntax error in FROM clause" and it highlights the second FROM. All
the text remains the same.
Does anyone know what this could be? Or maybe there's better syntax I
can use?
Any help would be greatly appreciated!
I am trying to return the sum of the [sell price] column created by a
temporary table. I'm using Access 2000, Win2k, and generated the
following syntax by using the design grid and typing into the SQL
window:
SELECT Sum([%$##@_Alias].sumsell) AS SumOfsumsell
FROM [SELECT [Bangkok Purchase Order].[sell price] as sumsell,
[Bangkok Purchase Order].bycore
FROM [Bangkok Purchase Order]
WHERE ((([Bangkok Purchase Order].poid)=58))
GROUP BY [Bangkok Purchase Order].[sell price], [Bangkok Purchase
Order].bycore]. AS [%$##@_Alias];
This returns the desired result. If I go back to it however, and
simply add a space to the end of the first line and delete it, I get a
"Syntax error in FROM clause" and it highlights the second FROM. All
the text remains the same.
Does anyone know what this could be? Or maybe there's better syntax I
can use?
Any help would be greatly appreciated!