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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic query dependent on form being open

Status
Not open for further replies.

philcon

Technical User
Feb 5, 2002
139
GB
Hi there,

tried this in the queries forum with no joy, wondered if anyone here could help....

I am wondering whether I can dynamically update a query (standard access, not SQL) dependendent on a certain form being open.

Essentially if said form is open when the query is processed, I wish to use a value from the form as a criteria. However if the form is not open, I do not wish the criteria to be used or I will get a messagebox asking for the "missing" parameter on the lines of.

I know this can be done using SQL/VBA, but can it be done more simply in the query design tool?

Hope you can help


Philcon


 
I just found this the other day.

I believe if you put "[Forms]![formname].[textbox] or is null" for the criteria it would work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top