• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1072
  • Last Modified:

Search for asterisk in Crystal Report query

Hello all,
I need to create a query in Crystal Reports that allows me to find strings that contain an asterisk.  I have tried (field) like ("*"), (field) like ("\*"), (field) like ('"*"'), and (field) like (""*"") among others.  Is there a way to escape the * character in a query so that you can actually search for that character in the string itself?
Thanks in advance,
Russ
0
rdillion
Asked:
rdillion
1 Solution
 
PCIRichardCommented:
in crystal, you could try:

inst({field},"*") >0

instr returns the position in the "*" in the field. Therefore if it contains a * the value will be >0
0
 
rdillionAuthor Commented:
Thanks very much PCIRichard, that works very well!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now