Query form

Ed3m

New Member
Joined
Mar 10, 2004
Messages
35
Hi
I have a stock control database and would like to create a form where a user can use predetermined numbers in a combo box to search for items which are low in stock eg if 10 was selected, items with 10 or less available would be shown. Any help would be appreciated.
Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Create a plain Select query that returns all of the results.
Then create a form that has the combo box with your choices and in the properties of the combo box, give it a name. Then save the form.
Then go back and open the query in Design View. For the criteria of the field with the numbers, type in "<=" (without the quotes) and then the forms![formname]![comboboxname] (i.e. "<=forms![myform]![mycombobox]"). Then save both and as long as the form is open with something in it, when you run the query you will get your results. Now if you run the query when the form is closed, it will prompt you for the number.
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,404
Members
451,762
Latest member
Brainsanquine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top