Wildcard Search

E

Erod1980

I have a form for which I want to use the value entered in a field and do a
wildcard search from it. so if they enter 6878941891, and value in the table
has $687894189$, I want that record brought in. How do I do a wildcard
search in a query using the value input in the field
[Forms]![fProviderTINSearch]![ProviderTIN]?

Thanks,
Erod
 
R

Ron2006

Make the criteria for the search similar to the following:


like "*" & [Forms]![fProviderTINSearch]![ProviderTIN] & "*"


Ron
 
L

Larry Linson

Erod1980 said:
I have a form for which I want to use the value
entered in a field and do a wildcard search from it.
so if they enter 6878941891, and value in the table
has $687894189$, I want that record brought in.
How do I do a wildcard search in a query using
the value input in the field
[Forms]![fProviderTINSearch]![ProviderTIN]?

You will have to define what you want in a bit more detail.

A table value of "$687894189$" would be a text string, not a numeric value.
Is this correct?

Your search entry example includes one additional numeric character more
than the numeric characters embedded in the string. How many, if any,
characters at each end of the search-for value do you want to ignore? What
do you want to do if the length of the search entry is less than the total
number of values to be ignored?

Larry Linson
Microsoft Office Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top