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

Using LIKE in Query criteria

Status
Not open for further replies.

molly

Technical User
Jul 17, 2000
219
US
i have a need in my BusnID field in my Qry, to sometimes want:
A - ALL the combined divisions or businesses Like ALL.
B - to want just one division Like 4
C - to need two divisions Like 2 and 3

I am thinking of using "Like". What do you think?
I think i can use one Qry but use the Like to filter the division records.

how do i write this? I used to know. Can't recall. was it something as:

Like [Enter each busnID needed or hit Enter for ALL];*

I forget.
 
or something like this?
Like([Enter multiple BusnID’s or Enter for ALL ]) & "*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top