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

combineing two names 1

Status
Not open for further replies.

raghu55

Technical User
Oct 2, 2005
45
US
hello,

I have a fieldnames like
raghu(last name),
reddy(first name),
sunki(middle name)


i have to combine these fields to get (raghu reddy sunki)
as under my name in report.

 
Try a formula containing:

whileprintingrecords;
stringvar Name:="";
if not(isnull({table.first}))
and
trim({table.first}) <> "" then
Name:=trim({table.first});
if not(isnull({table.middle}))
and
trim({table.middle}) <> "" then
Name:=Name&" "&trim({table.middle});
if not(isnull({table.last}))
and
trim({table.last}) <> "" then
Name:=Name&" "&trim({table.last});
name

-k
 
hello
its working.But i want to display as shown below,




(LASTNAME) (FIRSTNAME) (MIDLLENAME)
raghu sunki reddy
radhika swamyka daday


thatmeans when refresh the report i have to see
exact formatting.how can i get

 
You could achieve this display by placing the fields directly on the report, without a formula. Or maybe there is some requirement you are not conveying?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top