Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for "*" in record

Status
Not open for further replies.

drichter12

Technical User
Dec 15, 2005
232
US
Is it possible to search for an asterisk in a record field? The records I am searching for are any record where the "Site Name" field contains an asterisk as the first charachter of the name. To make it easier, there will be no asterisk in this field that is not in the first character position so technically I am just searching for the occurance of and asterisk in this field.

Thanks,

Dale
 
One way:
SELECT *
FROM yourTable
WHERE [Site Name] LIKE '*[*]*'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Well, that was simple.... Thanks, it works as requested.


Dale
 
Code:
Where [Site Name] Like "*[*]*"


Note the square brackets specify a character list that must be in a postion.

See Access help "Using Wildcard Characters in String Comparisons" for more detailed information.
 
I guess I should refresh if I don't answer right away....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top