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 2

Status
Not open for further replies.

fhurmuzlu

Programmer
Nov 16, 2004
52
US
I have to create Parameter with (Firstname%Lastname),Do I have create two parameters First name and Last name? but I need to put % between First and last Name?
 
Can you explain the rationale for this? Is the % supposed to act as a wildcard in case there is a middle initial? Where are you creating this parameter--in a command or in the Crystal GUI?

-LB
 
% act as any record belong to First and Last name of person , I am creating this parameter in a command.
 
Hi,
What database?
Are First and Last names in separate fields in 1 record?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Oracle database - First Name and Last name seprate Fields in same table
 
Actually I am creating a parameter in the parameter fields section of the field explorer.
 
If you want the user to enter both first and last name at the parameter prompt {?FullName} (which you are creating inside the command on the right), then you could set up a where clause like this:

where "table"."firstname"||' '||"table"."lastname" = '{?FullName}'

This would assume that the user was prompted to enter the first name plus one space plus the last name.

-LB

 
PLease I need more explanation!!I am using Crystal reports 2008
 
When i enter full name(first and last name) and run the report ,I do not get any record? Please help.
also I create formula
{People.Fstn}+""+{People.Lstn} (@Fullname)
then in selection expert
{@Fullname}={?Fullname}
 
I didn't see your post that you were creating the parameter in the main report--if you are using a command, you really should be creating the parameter and referencing it within the command--otherwise the selection occurs locally.

How will people enter the name at the prompt? I'm guessing it will be like this:

John Doe

...which means your selection formula should be:

{People.Fstn}+" "+{People.Lstn}={?Fullname}

... with a space between the double quotes.

-LB
 
Hi,
Another issue may arise depending on how those fields are defined in Oracle - There may be blank padding is CHAR is used.

Try LB's formula witrh this mod:

TRIM({People.Fstn})+" "+TRIM({People.Lstn})={?Fullname}

Better yet, have users enter each name separately.

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Please I need help , I did everything you told me to do still I am not getting any record!!!!!!!!!!
 
Hi,
Place your parameter in the Report header but do not use them in your record selection formula - return some records with the First and Last name fields and your {@Fullname} formula and compare them to the parameter values displayed - you may see why they do not match up.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Also, you should check to make sure the case matches.

You could try:

ucase(trim({table.fstn}))+" "+ucase(trim({table.lstn}))= ucase({?FullName})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top