Mrs.Meeker
Registered User.
- Local time
- Today, 19:56
- Joined
- Mar 28, 2003
- Messages
- 172
Using wildcard in a combo box search function??
I have a form with a combo box to search (by county) on it. The problem is that the data may be listed by multiple counties and the search is by single counties. There are 99 counties listed. The data comes from a different source and the counties could be listed in a multitude of ways. If I search for Warren County. I'd like to get Warren County as well as anything like Warren, Jefferson or Jefferson, Warren. There may be 3 or even 4 counties grouped together. This is the code I used on the button. Can I tweak it to gather all projects that have a certain county anywhere in the cell?
stLinkCriteria = "[County]=" & "'" & cmbCounty.Value & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks
Rhonda
I have a form with a combo box to search (by county) on it. The problem is that the data may be listed by multiple counties and the search is by single counties. There are 99 counties listed. The data comes from a different source and the counties could be listed in a multitude of ways. If I search for Warren County. I'd like to get Warren County as well as anything like Warren, Jefferson or Jefferson, Warren. There may be 3 or even 4 counties grouped together. This is the code I used on the button. Can I tweak it to gather all projects that have a certain county anywhere in the cell?
stLinkCriteria = "[County]=" & "'" & cmbCounty.Value & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks
Rhonda
Last edited: