I need to setup a query that has multiple statements but that ignore a statement if no value is entered.
For example; I want to query all my store for people with the last name JOHNSON and who are in STOCKING and who work in LOS ANGELES. I know how to set that up, but what happens if one day I just want LAST NAME and LOS ANGELES and dont care what department they are in (although I would also the department value displayed)?
I would like to have just one query setup that will do this so that the clients can just press a button and enter values as the parameters are displayed.
For example; I want to query all my store for people with the last name JOHNSON and who are in STOCKING and who work in LOS ANGELES. I know how to set that up, but what happens if one day I just want LAST NAME and LOS ANGELES and dont care what department they are in (although I would also the department value displayed)?
I would like to have just one query setup that will do this so that the clients can just press a button and enter values as the parameters are displayed.