Criteria: Searching From beginning

mateogp

Registered User.
Local time
Today, 05:15
Joined
Aug 11, 2004
Messages
43
Hello,

Im having trouble with Criteria for a query. I have my criteria like this:
Like "*" & [Forms]![NewSearch]![txtSearch2] & "*"

The only problem is, if im trying to search for a last name such as "Aber" the search results come up with not only Aber but also anything that contains Aber, such as the last name Singaber.

How can I make the criteria search from the beginning of the Name, and not anywhere in between?


Please help, going to drive myself nuts :)


Thanks in advance for any help you may be able to provide.



Mateo
 
How 'bout this?

Code:
Like "" & [Forms]![NewSearch]![txtSearch2] & "*"
 
That did it!


Thanks so much for your help.


Mateo
 

Users who are viewing this thread

Back
Top Bottom