S
SOS
Hi,
Please help me for this query stuff.
I have 3 different tables. I use query for each table to populate some
fields so that 3 tables can have same fields.
I use an union query to put 3 queries together. In access front end, user
enter the critera on the fly. I put the critera in a string (strMyWhere).
Then I apply the critera to the union string. The code is as below. qryUnion3
will be used in a form.
.....
select field1,field2.. from qryOne
Union All select field1, field2.. from qryTwo
Union All select field1, field2....from qryThree
order in field1
intX=Dcount(id, qryUnion3,strMyWhere)
Now, my questions are
1. If I put the critera in the qryOne, qryTwo, qryThree first before I union
them, will make the program run faster?
2. if so, how do I do this? I should put the qryUnion3 in the code, right?
How about the form whose data is coming from qryUnion3?
Thanks for help
--
Please help me for this query stuff.
I have 3 different tables. I use query for each table to populate some
fields so that 3 tables can have same fields.
I use an union query to put 3 queries together. In access front end, user
enter the critera on the fly. I put the critera in a string (strMyWhere).
Then I apply the critera to the union string. The code is as below. qryUnion3
will be used in a form.
.....
select field1,field2.. from qryOne
Union All select field1, field2.. from qryTwo
Union All select field1, field2....from qryThree
order in field1
intX=Dcount(id, qryUnion3,strMyWhere)
Now, my questions are
1. If I put the critera in the qryOne, qryTwo, qryThree first before I union
them, will make the program run faster?
2. if so, how do I do this? I should put the qryUnion3 in the code, right?
How about the form whose data is coming from qryUnion3?
Thanks for help
--