Access continous - stop loading on form load

I have an access continuous form with a number of controls on it which invoke VBA code to change the filter parameters on the records displayed.
Currently, when the form load, it automatically displays over 7,000 records in the table - I want to delay the display of ANY  records until the user sets various filter parameters (mostly combo and check boxes) and then clicks 'execute query' to show him the subset of records he's interested in.  
I have a second continous form which does this already but can't figure out why the first doesn't work this way (this is all a system I inherited).
Thanks in advance
LVL 4
Keyboard CowboyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PatHartmanCommented:
Typically this is done b binding the form to a query that will initially return no rows.  Only after selection criteria is made and the query rerun will data load.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Couple different ways:

1. Set the forms rowsource on the fly.

2. Base it on a query that uses a control to filter it and make sure that no records are returned (what Pat said).

3. Set the dataentry property to true as default, then set it to false when the user clicks the button.

4. Set the Filter property to 1=0 and make sure it's set to filter on load.

Jim.
0
Dale FyeCommented:
When I want this feature, to filter the form on demand, I usually use Jim's option #4.

That way, all I have to do is change the filter property and don't have to mess with the underlying query.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.