G
Guest
Acess 2003, Windows XP Pro
I am using VBA to build an SQL string which is, in the end, a MakeTable
query from a Union Query. My basic stucture being:
SELECT * INTO tblMyNewTable FROM (SELECT.....UNION.......)
My problem is that when I view the SQL code after the definition has been
established by the VBA code, there is a short character string added onto the
end of my definition. That string is
AS [%$##@_Alias];
As always is important, the Make Table Query does seem to work, but what
does this short character string addition do. I have attempted to delete the
character string manually, but then there is a "FROM clause error" when I
do.
I guess I would feel better knowing I had properly generated the correct SQL
and did not rely upon an "intelligent" program making assumptions on my
ignorance.
Anyone have an explanation to ease my perhaps needless concern.
Thanks as always.
I am using VBA to build an SQL string which is, in the end, a MakeTable
query from a Union Query. My basic stucture being:
SELECT * INTO tblMyNewTable FROM (SELECT.....UNION.......)
My problem is that when I view the SQL code after the definition has been
established by the VBA code, there is a short character string added onto the
end of my definition. That string is
AS [%$##@_Alias];
As always is important, the Make Table Query does seem to work, but what
does this short character string addition do. I have attempted to delete the
character string manually, but then there is a "FROM clause error" when I
do.
I guess I would feel better knowing I had properly generated the correct SQL
and did not rely upon an "intelligent" program making assumptions on my
ignorance.
Anyone have an explanation to ease my perhaps needless concern.
Thanks as always.