Can a query use two different textboxes from two different forms in the criteria for one query field?
The database I am working in has three different tables.
Query1 is the recordsource for Form1 and Form1 has a textbox called Value1
There are also two other forms named Form2 and Form3
Form2 and Form3 both have a textbox named Value1
I want the ability to double click on either Value1 textboxes from either Form2 or Form3 and I'd like to pass that value to the criteria of Query1 and open Form1 filtered based on the value from one of the two textboxes.
My problem is if one of the two forms is closed, the query criteria can't find the textbox on the closed form.
Is there a way to "bypass" the part of the criteria that involves the texbox from the closed form or both forms if Form1 is the only form open?
I will do my best to clarify if anyone has any questions. Thanks!
The database I am working in has three different tables.
Query1 is the recordsource for Form1 and Form1 has a textbox called Value1
There are also two other forms named Form2 and Form3
Form2 and Form3 both have a textbox named Value1
I want the ability to double click on either Value1 textboxes from either Form2 or Form3 and I'd like to pass that value to the criteria of Query1 and open Form1 filtered based on the value from one of the two textboxes.
My problem is if one of the two forms is closed, the query criteria can't find the textbox on the closed form.
Is there a way to "bypass" the part of the criteria that involves the texbox from the closed form or both forms if Form1 is the only form open?
I will do my best to clarify if anyone has any questions. Thanks!