Mailmerge from Access - incorrect date/time format

M

macropod

Hi Dawn,

If you select the mergefields and press Shift-F9, you should see something like {MERGEFIELD MyDate} and {MERGEFIELD MyTime}.

To get the date format you want, you can add a formatting picture switch. For example if you add '\@ "ddd, d MMM yyyy"' to the
field, as in {MERGEFIELD MyDate \@ "dddd, d MMM yyyy"} your date will come out as 'Saturday, 2 August 2008'. You probably want
{MERGEFIELD MyDate \@ "d/MM/yy"}.

Similarly, if you format the time mergefield as {MERGEFIELD MyTime \@ "HH:mmAM/PM"} you should get the results you're after.
 
D

dawnjlane

Hi Everyone

I am having problems with mail merge between Access and Word with dat
and time formats changing.

I use Office 2007 and the date in Access is set to short date i
02/08/08 and time also to short time ie 12:00PM. When I do a mail merg
into a Word template the dates are transposing into American long dat
ie 08/02/2008 and time as 12:00:00 PM.

I have checked the date and time settings in Access, Word and on th
computer itself and all are set to UK English.

I am presently having to do a find and replace for all the entrie
which is quite tiresome as there are 3 x different date entries and
time entry.

Any one come across this before and how did you solve it?

Daw
 
D

Doug Robbins - Word MVP

If that doesn't work, use the Format() function in a Query in Access to
convert the date to text in the format that you want it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

macropod said:
Hi Dawn,

If you select the mergefields and press Shift-F9, you should see something
like {MERGEFIELD MyDate} and {MERGEFIELD MyTime}.

To get the date format you want, you can add a formatting picture switch.
For example if you add '\@ "ddd, d MMM yyyy"' to the field, as in
{MERGEFIELD MyDate \@ "dddd, d MMM yyyy"} your date will come out as
'Saturday, 2 August 2008'. You probably want {MERGEFIELD MyDate \@
"d/MM/yy"}.

Similarly, if you format the time mergefield as {MERGEFIELD MyTime \@
"HH:mmAM/PM"} you should get the results you're after.

--
Cheers
macropod
[MVP - Microsoft Word]


dawnjlane said:
Hi Everyone

I am having problems with mail merge between Access and Word with date
and time formats changing.

I use Office 2007 and the date in Access is set to short date ie
02/08/08 and time also to short time ie 12:00PM. When I do a mail merge
into a Word template the dates are transposing into American long date
ie 08/02/2008 and time as 12:00:00 PM.

I have checked the date and time settings in Access, Word and on the
computer itself and all are set to UK English.

I am presently having to do a find and replace for all the entries
which is quite tiresome as there are 3 x different date entries and 1
time entry.

Any one come across this before and how did you solve it?

Dawn
 

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

Top