R
Rafael Bélanger via AccessMonster.com
Currently i have a dao.recordset called rsWhatever.
When i want to set the query in the rsWhatever.OpenRecordset(strQuery), ive
always done a query from a table, which make sense but can i do a query
from a query i have saved in my database like this :
dim rsWhatever as dao.recordset
set rsWhatever = currentdb.OpenRecordset("SELECT * FROM [Query] WHERE
this=this and that=that and ....")
This way i can optain filtered results from the query i have, i know i
could put the entire query in one sql statement but i already my results in
one query and i only need 1 field of that query.
Mayb i could work it out with a querydef but i have no clue how it works,
but i do not mind going threw another way if i have to, if anybody could
help it would be appreciated.
Thank
Rafael
When i want to set the query in the rsWhatever.OpenRecordset(strQuery), ive
always done a query from a table, which make sense but can i do a query
from a query i have saved in my database like this :
dim rsWhatever as dao.recordset
set rsWhatever = currentdb.OpenRecordset("SELECT * FROM [Query] WHERE
this=this and that=that and ....")
This way i can optain filtered results from the query i have, i know i
could put the entire query in one sql statement but i already my results in
one query and i only need 1 field of that query.
Mayb i could work it out with a querydef but i have no clue how it works,
but i do not mind going threw another way if i have to, if anybody could
help it would be appreciated.
Thank
Rafael