The answer to this may be posted elsewhere, but after considerable time searching I am not quite finding what I am looking for. I also suspect that others can learn from this so...will post the question that has probably been answered several times already.
I have a table that has some customer contact information. Now I want to produce a report by letting the user enter parameters on a form. And I want them to be able to select any combination of values from 4-5 fields. For example: show me all customers where the salesperson is John and the city is Seattle. Or show me all customers from the state of Alaska (or whatever combination). I am looking for different ways to accomplish this. What I have now is not working - and I suspect in the end it is not the perfect solution - even if it does work. But, I would like to get this to work or understand why it does not work.
So if anyone has any example databases they can post with a more elegan solution to the above that would be great.
Or if anyone would be interested in looking at my attached example and possible tweaking it and re-posting the changed db that would also be much appreciated.
in the attached example there is a table with test data. Then there is a form - frmSelect. From here I envision entering the parameter values and then clicking the button to return the record selection. But it does not work - see underlying query. Can it work like this??
I have a table that has some customer contact information. Now I want to produce a report by letting the user enter parameters on a form. And I want them to be able to select any combination of values from 4-5 fields. For example: show me all customers where the salesperson is John and the city is Seattle. Or show me all customers from the state of Alaska (or whatever combination). I am looking for different ways to accomplish this. What I have now is not working - and I suspect in the end it is not the perfect solution - even if it does work. But, I would like to get this to work or understand why it does not work.
So if anyone has any example databases they can post with a more elegan solution to the above that would be great.
Or if anyone would be interested in looking at my attached example and possible tweaking it and re-posting the changed db that would also be much appreciated.
in the attached example there is a table with test data. Then there is a form - frmSelect. From here I envision entering the parameter values and then clicking the button to return the record selection. But it does not work - see underlying query. Can it work like this??