1. Create 3 Text Boxes and a Command Button on the Form (myForm).
2. Change the Name property Value of the Text Boxes as xHeight, xLength and xWidth.
3. Open the Query in Design View.
4. Enter the following expression in Criteria Row of the Query under the Height Column:
5. Enter similar expressions, with appropriate logical symbols, under Length & Width columns, in the same row and save the Query. Remember, when you write all expressions on the same row all the three conditions must be TRUE to get the output.
6. Change the Name Property of the Command Button as cmdRefresh.
7. Write the following VBA Code in the Click event procedure of the command Button.
Code:
Private Sub cmdRefresh_Click()
Me.Refresh
End Sub
8. Save the Form and open it in Normal View, set the Text Boxes with appropriate values (don't type <, > symbols), click the Command Button.
9. Open the Query in normal view and check the result.