Whoops.
The format character for minutes is "n" not "m" - m is already used for Month,
so some other character has to be used for minutes.
=cstr(format([MyDate],"ddmmyyyyhhnnss")
Also, FYI the format function creates a string, so CStr is not really needed.
If you want to add the time up to seconds then
=cstr(format([MyDate],"ddmmyyyyhhmmss")
Dudley said:
Can anyone advise the code to use an Access query to convert a date or time
to a string - e.g. 04/07/2005 to 04072005?
Thanks