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

Need help formatting dates

Status
Not open for further replies.

MyIronLung

Programmer
Jul 17, 2001
11
0
0
US
I need to format a date feild which has dates like:

5/9/2000
12/1/2000
3/12/2001
12/24/1999

to be in the form:
YYYY/MM/DD

I would like to do this with one update query.

Thanks,
MIL
 


In the update to field:

=format([your field name],"YYYY/MM/DD")
 
I tried that and it didn't work for some reason. Any other thoughts?

Thanks,
MIL
 
Try this in your debug window (Ctrl-G) without the quotes.

"? format("4/5/2001","YYYY/MM/DD")"

If this fails, then there is definitely a problem with one of your VBA components. If not, then could you explain the result you are receiving?

Thanks,
Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top