Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form without preloading data 1

Status
Not open for further replies.

hpl2001

Programmer
Dec 18, 2001
105
CA
Hello:

Is it possible to open a form without preloading the data? I don't want the query to run until the user clicks on a search button.

TIA

Holly
 
Great. Would you be able to show me what the code would look like to reset the record source? The source is a query.
 
Your record source could be set to something like:
SELECT * FROM [YourQueryNameHere] WHERE 1 = 2;

Then when you are ready, change the record source to something like:
SELECT * FROM [YourQueryNameHere];

You can also open the form with a filter like:
[MyNeverNegativeField] = -1



Duane
Hook'D on Access
MS Access MVP
 
That works great. Thank you so much!

Holly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top