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

Appending Zeros to the groupname field

Status
Not open for further replies.

reacha

Programmer
Jun 9, 2010
83
US
I have grouped by a field called gate1 and now when i want to append the groupname field with zero's

Groupname field should be 5 digits

Ex:

89 - 00089
452 - 00452

Please help me out!!




Thanks,
reacha
 
Convert to text

totext(yournumberfield, "00000",0,"")

if already text

totext(tonumber(yournumericstring), "00000",0,"")


Ian
 
FYI--the following is sufficient, without the additional 0,"".

totext(yournumberfield, "00000")

Also, you should just be using your group field in the formula, not the groupname field. I have never had a reason to use the groupname field myself.

-LB
 

when i scheduled the report in business objects enterprise to the specific FTP server then i am not getting the zeros that i have appended to the groupname field



Thanks,
reacha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top