I have a form that I am using to run a query. The query name “qryUCQuery” the form name is “frmSelection” it has 2 text boxes on it ,Text0 and Text2. I am using “frmSelection” to specify the values for “qryUCQuery”. The criteria for the query is “Like "*" & [Forms]![frmSelection]![Text0] & "*" Or Is Null And The criteria is “Like "*" & [Forms]![frmSelection]![Text0] & "*" Or Is Null”.
The problem I have is that if I have a null value in frmSelection it returns all records. I want Access to add a value to any null text boxes on frmSelection and run the query on the click event so I there is a value in all text boxes when the query runs.
The problem I have is that if I have a null value in frmSelection it returns all records. I want Access to add a value to any null text boxes on frmSelection and run the query on the click event so I there is a value in all text boxes when the query runs.