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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching using the first character

Status
Not open for further replies.

Zak2009

Programmer
Sep 4, 2009
325
KE
Hi all,

I want a formulae that will search from an sql data base using crystall reports using the first character. It should bring all the values that have that first character or number.

Please assist.
 
If you want to be able to select what value to search for, create a string parameter {?FirstChar} and then use a record selection like this:

{table.string}[1] = {?FirstChar}

Or if the field is a number, use:

totext({table.string},0,"")[1] = {?FirstChar}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top