hogmahub
May 22nd, 2006, 12:23 PM
I am trying to use two SQL select statements joined using union all as a subquery and Access is not letting me do it. e.g
select t1.customerid, t1.customer, sum(t1.value) as tot from (select SQL1 union all SQL2) t1 group by t1.customerid, t1.customer.
I am passing this through to Access as a VBA / ADO sql string.
Anyone know whether this is possible?
Thanks
select t1.customerid, t1.customer, sum(t1.value) as tot from (select SQL1 union all SQL2) t1 group by t1.customerid, t1.customer.
I am passing this through to Access as a VBA / ADO sql string.
Anyone know whether this is possible?
Thanks