Solved

MS Access criteria with like function

Posted on 2013-06-17
3
732 Views
Last Modified: 2013-06-17
Hi there,

I am working with MS Access for setting criteria for a Text field. Would like to find a "*" if it occuried inside the text by LIKE function. However I found as the original setting of Like * means match all, I fail to do what I need :

e.g. original MS Access setting is : to find text contains "A" is LIKE "*A*"

However, what I need now is to find text contains "*"...........

Pls anybody help?
0
Comment
Question by:hkgal
3 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 39252704
Hi

Like "[*]"

Regards
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 39252707
If the field contains just an asterisk then set the criteria as
"[*]"

If the field contains other characters as well as an asterisk then use..

Like "*[*]*"
0
 

Author Closing Comment

by:hkgal
ID: 39255046
thanks excellent
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question