I have a report that concatenates department numbers and department names.
The department numbers can be from one to three digits. I would like to add leading zeros to the one and two digit department numbers so that all department numbers are three digits.
Below is the formula that I am using. The second line where the department number and name are concatenated works fine, but the line I added above it to add the leading zeros to the department number does not.
Can someone point me in the right direction to get this working?
Thanks in advance for any help on this.
format(dept.dept_nbr,"###") +
{dept.dept_nbr}& " " & {dept.dept_nm}
The department numbers can be from one to three digits. I would like to add leading zeros to the one and two digit department numbers so that all department numbers are three digits.
Below is the formula that I am using. The second line where the department number and name are concatenated works fine, but the line I added above it to add the leading zeros to the department number does not.
Can someone point me in the right direction to get this working?
Thanks in advance for any help on this.
format(dept.dept_nbr,"###") +
{dept.dept_nbr}& " " & {dept.dept_nm}