I'm working on a spreadsheet for our inventory. The inventory is pulled out of a SQL database called Inventory. The retail price field is called PriceRetail and the wholesale price field is called PriceWholesale. The table starts in cell A6.
I have a dropdown in cell B3 so I can select "Retail" or "Wholesale" and then a threshold in cell B4 so I can enter a maximum price.
What I want to do, for example is select Retail in cell B3 and enter 10.00 in cell B4 and then refresh the query and it show me all inventory where the Inventory.PriceRetail field is equal to or less than 10.00.
I have everything built but having issues with my query. This is what I currently have:
SELECT Inventory.Stock, Inventory.PriceRetail, Inventory.PriceWholesale
FROM SQLUser.Inventory Inventory
WHERE (Inventory.PriceRetail<=?)
I have a dropdown in cell B3 so I can select "Retail" or "Wholesale" and then a threshold in cell B4 so I can enter a maximum price.
What I want to do, for example is select Retail in cell B3 and enter 10.00 in cell B4 and then refresh the query and it show me all inventory where the Inventory.PriceRetail field is equal to or less than 10.00.
I have everything built but having issues with my query. This is what I currently have:
SELECT Inventory.Stock, Inventory.PriceRetail, Inventory.PriceWholesale
FROM SQLUser.Inventory Inventory
WHERE (Inventory.PriceRetail<=?)