I posted a question yesterday however realised in hindsight that I wasn't particularly clear with what I needed help with.
I am looking to input data from two text boxes on a form, indicating a price range and have a query show all records with values between those numerical values.
Normally I would write something along the lines of:
Between [Forms]![formName]![inputboxName1] AND [Forms]![formName]![inputboxName2]
in the criteria box, thereby giving me the values between box 1 and box 2, however this makes it that the criteria is necessary for the query, and if the user chose not to input a value into box 1 or box 2, the query outputs a blank table as the input was essentially nothing.
How can I change my criteria so that I can get an optional query parameter giving records in the range of box 1 and box 2?
If you need any more information I'm happy to get it, sorry I'm new!
Thanks!
I am looking to input data from two text boxes on a form, indicating a price range and have a query show all records with values between those numerical values.
Normally I would write something along the lines of:
Between [Forms]![formName]![inputboxName1] AND [Forms]![formName]![inputboxName2]
in the criteria box, thereby giving me the values between box 1 and box 2, however this makes it that the criteria is necessary for the query, and if the user chose not to input a value into box 1 or box 2, the query outputs a blank table as the input was essentially nothing.
How can I change my criteria so that I can get an optional query parameter giving records in the range of box 1 and box 2?
If you need any more information I'm happy to get it, sorry I'm new!
Thanks!