to open a recordset from a query from the Access instead of from a table. Right now I'm opening recordset from table like this:
Set rstEmployees = dbs.OpenRecordset("my_table", dbOpenTable).
But if I substitute my_table with my_query, it doesnt work.
By the way: This code is inside Excel macro.
Is it possible?
Thanks.
Set rstEmployees = dbs.OpenRecordset("my_table", dbOpenTable).
But if I substitute my_table with my_query, it doesnt work.
By the way: This code is inside Excel macro.
Is it possible?
Thanks.