T
TheCaptain
I am using a form to run a query with parameters. Below is what the form
looks like------- <--represents a text box and there is a search button)
Age: -----------
Salary From: -----
To: ------
Date Hired From:----------
To:-----------
Employee Number: -------------------
So, as you can see, I have two parameters with multiple inputs and two
parameters with only one input. My problem is that I can code for Age and
Employee Number using this example:
WHERE (Table1.Number=Forms!Form1.number Or
Forms!Form1.number Is Null) AND (Table1.Age=Forms!Form1.age Or
Forms!Form1.age IS NULL);
The code above works great and gives me the correct records. But, how do I
code for the multiple input parameters? I have tried and failed miserably.
I really don't know Access that well so if you have an answer, please be
descriptive
looks like------- <--represents a text box and there is a search button)
Age: -----------
Salary From: -----
To: ------
Date Hired From:----------
To:-----------
Employee Number: -------------------
So, as you can see, I have two parameters with multiple inputs and two
parameters with only one input. My problem is that I can code for Age and
Employee Number using this example:
WHERE (Table1.Number=Forms!Form1.number Or
Forms!Form1.number Is Null) AND (Table1.Age=Forms!Form1.age Or
Forms!Form1.age IS NULL);
The code above works great and gives me the correct records. But, how do I
code for the multiple input parameters? I have tried and failed miserably.
I really don't know Access that well so if you have an answer, please be
descriptive