Change / to - in a field

G

Guest

On a report in an unbound field I have:
=[SSN] & "-" & [TodaysDate]

Todays date is in the format 99/99/9999 is it possible to change it to this
99-99-9999 in this unbound text box?
 
A

Al Camp

Try...
=[SSN] & "-" & Format([TodaysDate],"mm-dd-yyyy")

I think you're confusing an date "InputMask" (99/99/9999) with a
date "Format" (like mm/dd/yy or dd-mm-yy, etc...)
 
G

Guest

worked great thanks

Al Camp said:
Try...
=[SSN] & "-" & Format([TodaysDate],"mm-dd-yyyy")

I think you're confusing an date "InputMask" (99/99/9999) with a
date "Format" (like mm/dd/yy or dd-mm-yy, etc...)
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

pokdbz said:
On a report in an unbound field I have:
=[SSN] & "-" & [TodaysDate]

Todays date is in the format 99/99/9999 is it possible to change it to
this
99-99-9999 in this unbound text box?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top