Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a query 1

Status
Not open for further replies.

choochoowinn2009

Technical User
Feb 24, 2010
34
US
How do I write in my query to search for multiple names starting with "COMMUNITY"?

Example: If I type "COMMUNITY", it will show me all 3 COMMUNITIES listings:
1) COMMUNITY ENLISTMENT
2) COMMUNITY ORGANIZATION
3) COMMUNITY ENFORCEMENT

If I use the "LIKE" command, and enter "COMMUNITY" only, it comes up with NOTHING. That's not how I'd like to see my results.

Please help! Thank You!!!
 
You criteria would need to use the "*" wildcard character.

Assuming you have a form with a control Forms!frmSearch!txtSearch, the criteria might look like:
Code:
  Like Forms!frmSearch!txtSearch & "*"

Duane
Hook'D on Access
MS Access MVP
 
Thank you so much. It works!

I put that in the criteria search in my query as a pop up window for the user.

Thank you!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top