Wildcards?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to create a query that lets users search for an item in a column.

I know for input you put Like [Enter Search Here]
and I know for wild cards you use the * key

However, I am having a trouble putting them together. For example if a user
wants to search the notes function.

Thanks!
 
To create a parameter query with wildcards, do something along these lines:

Like "*" & [Parameter1] & "*" & [Parameter2] & "*"

I want to create a query that lets users search for an item in a column.

I know for input you put Like [Enter Search Here]
and I know for wild cards you use the * key

However, I am having a trouble putting them together. For example if a user
wants to search the notes function.

Thanks!
 
Debug.Print StrConv("HAPPY EASTER",3) returns Happy Easter. 3 = vbProperCase.

Debug.Print StrConv("HAPPY EASTER",2) returns happy easter. 2 = vbLowerCase.

Debug.Print LCase("HAPPY EASTER") returns happy easter.

Debug.Print Left(UCase("HAPPY EASTER"),1) & Mid(LCase("HAPPY EASTER"),2)
returns Happy easter.
 
Thanks, Works Great!

kingston via AccessMonster.com said:
To create a parameter query with wildcards, do something along these lines:

Like "*" & [Parameter1] & "*" & [Parameter2] & "*"

I want to create a query that lets users search for an item in a column.

I know for input you put Like [Enter Search Here]
and I know for wild cards you use the * key

However, I am having a trouble putting them together. For example if a user
wants to search the notes function.

Thanks!
 
Whoops! That was what I hope is the right answer for another question.

Sorry about that.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


Jerry Whittle said:
Debug.Print StrConv("HAPPY EASTER",3) returns Happy Easter. 3 = vbProperCase.

Debug.Print StrConv("HAPPY EASTER",2) returns happy easter. 2 = vbLowerCase.

Debug.Print LCase("HAPPY EASTER") returns happy easter.

Debug.Print Left(UCase("HAPPY EASTER"),1) & Mid(LCase("HAPPY EASTER"),2)
returns Happy easter.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

GregB said:
I want to create a query that lets users search for an item in a column.

I know for input you put Like [Enter Search Here]
and I know for wild cards you use the * key

However, I am having a trouble putting them together. For example if a user
wants to search the notes function.

Thanks!
 

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

Similar Threads

The Witcher 3 upgrade 4
Wildcard for Enter Parameter Value Box? 2
Access 2007 Query 2
Query Help 4
Build search function in to a form 5
Alt codes 4
Wildcard Table 4
Searching in VBA like the find function 3

Back
Top