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

Parameter field for searching db on partial Name?

Status
Not open for further replies.

deborahyr

Technical User
Nov 14, 2002
63
US
I'm trying to create a parameter that will allow the user to enter part of last name to do a search using a Crystal Report XI. How can I do this?
 
Hi,
Use the wild card for your database concatenated to the parameter entered:

Code:
{Table.LastName} LIKE "*" + {?ParameterEntered} + "*"

Some databases use % instead of * but either should work in Crystal.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hmmm, I still seem to be missing something - this is not working or bringing back any data. Does the field itself have to be in certain type? My field is a String. This is what my sql looks like when entering stel in parameter field in running report...

WHERE "RollUpCandidates"."CandidateLastName"=N'stel'
 
I think you'd better show us your record selection formula by copying and pasting it into the thread.

-LB
 
Ah ha! Got it - my record selection was off. Thank you so much!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top