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!

Changing a Date to Text

Status
Not open for further replies.

sdimaggio

Technical User
Jan 23, 2002
138
US
I am trying to get a textbox which has the =now() formula to display text.
I have a formula that is trying to issue an approval number.

=[Lab ID] & -[customer Number] & -[month]

123 - 45678 - 02 <<- this is what I want

the first two parts work but when I add [month] I have a feeling the [month] is still a number and my result is ?#name. I formated a textbox called month which is formated to show &quot;02&quot;.

how do I get the textbox to be text?

thanks steve
 
OOPS,
I just noticed you want two digits.
You could add an
=&quot;0&quot; & month(now())
which would give you two if month is 9 or less but three if 10 or more.
if you need two digits try
=IIf(Month(Now())<10,&quot;0&quot; & Month(Now()),Month(Now()))
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top