WineSnob
Not Bright but TENACIOUS
- Local time
- Yesterday, 19:14
- Joined
- Aug 9, 2010
- Messages
- 211
I have a main form with textboxes and a "search" button to filter the data and display the results in a subform. I am using code to set the record source from the values in the main form. Right now it is just using "AND". Example Vendor like "*ABC*" AND Date between datestart and dateend. This works fine. I would now like to filter the filtered results again using an OR criteria. The or could be where [notes] like "*visit*" OR like "*met*".
If i am not mistaken you cannot get a single query to use AND and OR. I just need a little push in the right direction with an idea.
I was thinking of creating a temp table and appending the initial results and then another button to query off the temp table. Any thoughts ??????
:banghead:
If i am not mistaken you cannot get a single query to use AND and OR. I just need a little push in the right direction with an idea.
I was thinking of creating a temp table and appending the initial results and then another button to query off the temp table. Any thoughts ??????
:banghead: