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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Like query with parameter?

Status
Not open for further replies.

sami0202

Technical User
Joined
Apr 1, 2009
Messages
2
Location
US
Is there a way to do a like query where it will ask the user to input the data. I have a field with different committees listed in it and I need to pull out certain committies. But I need to keep in mind that one person could be on multiple committees.

Thank you for your help.
Sharon
 
I'm not sure how "like" would resolve multiple committees querying unless the committee names contained similar text. In addition, IMHO parameter prompts are not acceptable user interface faq701-6763.

Wait, you don't have multiple values in a single field do you :-( If you do, you might want to change your table structure to a more normalized one.

Duane
Hook'D on Access
MS Access MVP
 

Something like this?
Code:
SELECT * FROM myTable WHERE CustomerNbr LIKE [Enter Value] & "*"

Randy
 
Duane, If I had created this database from scratch I would have done it differently, however I'm stuck with what I have. Thank you for your suggestions.

Randy, After a few false starts I finally got it working, Thank you.

Thanks to TekTips, without you guys/gals I'd be in a heap of trouble.

Sharon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top