Criteria: Searching From beginning (1 Viewer)

mateogp

Registered User.
Local time
Today, 00:04
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
 

ssteinke

for what it's worth
Local time
Today, 01:04
Joined
Aug 2, 2003
Messages
195
How 'bout this?

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

mateogp

Registered User.
Local time
Today, 00:04
Joined
Aug 11, 2004
Messages
43
That did it!


Thanks so much for your help.


Mateo
 

Users who are viewing this thread

Top Bottom