M
Michael Edison
I have the two following queries:
** Query1 **
SELECT * FROM
[SELECT * FROM Table1
UNION
SELECT * FROM Table2
]. As Qry1;
** Query2 **
SELECT * FROM
[SELECT * FROM
[SELECT * FROM Table1
UNION
SELECT * FROM Table2
]. As Qry1
]. AS Qry2;
Can anyone explain why Query1 will work with both Access 97 and 2000
but Query2 will only work with 2000? For what it is worth, Access
changes the inside brackets on Query2 to parentheses. Trying the
different combinations of brackets and parentheses did not help. At
the moment we only have Access 97 where I work so a solution that
works with both versions would be ideal.
Thanks for your help,
Mike
** Query1 **
SELECT * FROM
[SELECT * FROM Table1
UNION
SELECT * FROM Table2
]. As Qry1;
** Query2 **
SELECT * FROM
[SELECT * FROM
[SELECT * FROM Table1
UNION
SELECT * FROM Table2
]. As Qry1
]. AS Qry2;
Can anyone explain why Query1 will work with both Access 97 and 2000
but Query2 will only work with 2000? For what it is worth, Access
changes the inside brackets on Query2 to parentheses. Trying the
different combinations of brackets and parentheses did not help. At
the moment we only have Access 97 where I work so a solution that
works with both versions would be ideal.
Thanks for your help,
Mike