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

Combining Number field with Date() 1

Status
Not open for further replies.

cschnable

Programmer
May 24, 2001
36
US
How do I have a form field display an existing number field with Date()

if The number field = 971 and I put
[Field]&"_"&Date() I get 971_7/16/2004

I want it to read out as 971_7_16_2004

Any help is appreciated - Thank you!
 
try this

=[MyNumber] & "_" & Format(Date(),"d") & "_" & Format(Date(),"m") & "_" & Format(Date(),"yyyy")

"My God! It's full of stars...
 
Thank you for your help - I just figured it out - I used

=[MyNumber] & "_" & Format(Date(),"dd_mm_yyyy")

It worked fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top