If I have a recordset set up, can I then run an SQL statement on it or define a subset of that recordset?
Basically, I have two tables. First I perform a union query on them. From the result of my union query, I then want to perform a group by. Basically, a group by on the resulting recordset.
I know I can make a query def of the union, then add the query def to my next query and perform the group by. However, I would like to avoid that all together and somehow accomplish this task through recordsets.
Any suggestions?
Basically, I have two tables. First I perform a union query on them. From the result of my union query, I then want to perform a group by. Basically, a group by on the resulting recordset.
I know I can make a query def of the union, then add the query def to my next query and perform the group by. However, I would like to avoid that all together and somehow accomplish this task through recordsets.
Any suggestions?