Hello everyone,
I have a main unbound form to set search criteria. The main form has a bound subform. The subform is used to display a search results based on a query that uses search criteria specified in the main form.
The subform is bound to an empty recordset, so user gets an empty form when he/she opens it.
It works fine for the first run. However, after user closes the form and opens it again, the main form brings the whole table (approx.200,000 records) nevertheless its subform is based on an empty recordset
The subform is empty if I run it as stand alone form, but it gives me the whole table (approx.200,000 records) if I run it within the main form.
Does anybody have any ideas?
surotkin
I have a main unbound form to set search criteria. The main form has a bound subform. The subform is used to display a search results based on a query that uses search criteria specified in the main form.
The subform is bound to an empty recordset, so user gets an empty form when he/she opens it.
It works fine for the first run. However, after user closes the form and opens it again, the main form brings the whole table (approx.200,000 records) nevertheless its subform is based on an empty recordset
Code:
SELECT tblAgents.*
FROM tblAgents
WHERE (((tblAgents.AgentID)=0));
The subform is empty if I run it as stand alone form, but it gives me the whole table (approx.200,000 records) if I run it within the main form.
Does anybody have any ideas?
surotkin