Minddumps
Registered User.
- Local time
- Today, 07:12
- Joined
- Jul 5, 2011
- Messages
- 73
how to use delimiter to search multiple filters [using john big booty's db]
I implemented John Big Booty's dynamic search (found here: http://www.access-programmers.co.uk/forums/showthread.php?t=188663) using Access 2007 a while back and was recently asked by one of my work team members to change it to allow multiple search terms.
I was first thinking to add in the query
and add those fields in the form as well, but this seems so tedious and then to have too many search boxes on the form would look ugly and probably slow down the process of the page, especially since I don't want to put a cap on the amount of search terms.
So does anyone have a better idea? or some code so I can separate search terms in the same search field on the form? ex. TN|KY|FL|WO|OK So any records matching any of those filters will show up in the form...??
I implemented John Big Booty's dynamic search (found here: http://www.access-programmers.co.uk/forums/showthread.php?t=188663) using Access 2007 a while back and was recently asked by one of my work team members to change it to allow multiple search terms.
I was first thinking to add in the query
Code:
Like "*" & [Forms]![frmSearch]![txtSearch2] & "*" OR Like "*" & [Forms]![frmSearch]![txtSearch3] & "*"
So does anyone have a better idea? or some code so I can separate search terms in the same search field on the form? ex. TN|KY|FL|WO|OK So any records matching any of those filters will show up in the form...??
Last edited: