473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Mail merge date problem with Word 2002 using Access as data source

I have a table of data in Access 2002 which is used as the source table for
a mail merge document using Word 2002 on my clients PC. The data is
transferred OK but I've noticed that any dates which fall between
1stday/anymonth/any year and 12thday/anymonth/any year are rearranged in the
wrong format. For example 4th July 2005 from the database would be displayed
as 07/05/2005 in the merged document. In addition blank date fields from the
source table are shown as the current date for that particular day. This
strange anomaly does not occur for any dates where the day goes beyond 12!?

However, when I run the same document and source on my own PC using Word
2003 the dates in the merged document are shown correctly and in the correct
format and blank date data is not shown. As a stab in the dark I'm using
Microsoft Word 11.0 Object library as the reference setting. Should this be
changed for Word 2002 to a lower reference? Or could there be a bug in Word
2002?

Any help or feedback would be much appreciated. At present my client would
have to check the document for all those dates <12th/month and edit them.
Obviously not very efficient.

Many thanks in advance
Dawn Davis
Nov 13 '05 #1
7 2491
Rog
Could it be one of the pc's has a different regional setting? Try
formatting the dates the way you want them in a query and use that as
your source.

Nov 13 '05 #2
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Could it be one of the pc's has a different regional setting? Try
formatting the dates the way you want them in a query and use that as
your source.

Nov 13 '05 #3
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Could it be one of the pc's has a different regional setting? Try
formatting the dates the way you want them in a query and use that as
your source.


You can force Word to use your preferred date format by using what Word
calls 'field switches' and are set up from the Word document or template.
You can get full details from the help file but in your case you simply need
to make sure your merge field says something like: { MERGEFIELD MyDate \@
"dd/MM/yyyy" }

Note you must use capital M for month - lower case m is for minute.

Nov 13 '05 #4
Justin

Many thanks but have already tried this but still did not work.

Dawn

"Justin Hoffman" <j@b.com> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Could it be one of the pc's has a different regional setting? Try
formatting the dates the way you want them in a query and use that as
your source.


You can force Word to use your preferred date format by using what Word
calls 'field switches' and are set up from the Word document or template.
You can get full details from the help file but in your case you simply
need
to make sure your merge field says something like: { MERGEFIELD MyDate \@
"dd/MM/yyyy" }

Note you must use capital M for month - lower case m is for minute.

Nov 13 '05 #5
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Justin

Many thanks but have already tried this but still did not work.

Dawn

"Justin Hoffman" <j@b.com> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Could it be one of the pc's has a different regional setting? Try
formatting the dates the way you want them in a query and use that as
your source.


You can force Word to use your preferred date format by using what Word
calls 'field switches' and are set up from the Word document or template.
You can get full details from the help file but in your case you simply
need
to make sure your merge field says something like: { MERGEFIELD MyDate
\@
"dd/MM/yyyy" }

Note you must use capital M for month - lower case m is for minute.


I have never seen the MS Word field switches overridden - whenever date or
currency issues have occurred between machines, I have found this to work.
When you say you tried it, you mean that it worked on your machine but not
on your client's? Did you do this personally on site or just receive
feedback from the client?
The only things that occur to me are:
Make sure the field in Access is a real date field (not for example a text
field where someone is filling in a date) Perhaps you could check the
client's dataset.
Make sure you avoid reserved words like 'name' and 'date' for field names.
It may be worthwhile getting the client to check his references and make
sure none are missing.
If this is still a problem, you could go through the Windows control panel
settings with your client and try and replicate the problem.

Nov 13 '05 #6
I tested the merge document on my machine using Word 2003 and then I
personally tested it on their machine, they use Word 2002. This makes me
suspect it may be a bug with Word as I have tried using the field switch
formats and making sure the date format in my Access query is correct both
on my machine and my clients. I'm going to check the regional settings as a
stab in the dark so to speak and will let you know if i have any success.

Dawn
"Justin Hoffman" <j@b.com> wrote in message
news:d9*********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Justin

Many thanks but have already tried this but still did not work.

Dawn

"Justin Hoffman" <j@b.com> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
> Could it be one of the pc's has a different regional setting? Try
> formatting the dates the way you want them in a query and use that as
> your source.

You can force Word to use your preferred date format by using what Word
calls 'field switches' and are set up from the Word document or
template.
You can get full details from the help file but in your case you simply
need
to make sure your merge field says something like: { MERGEFIELD MyDate
\@
"dd/MM/yyyy" }

Note you must use capital M for month - lower case m is for minute.


I have never seen the MS Word field switches overridden - whenever date or
currency issues have occurred between machines, I have found this to work.
When you say you tried it, you mean that it worked on your machine but not
on your client's? Did you do this personally on site or just receive
feedback from the client?
The only things that occur to me are:
Make sure the field in Access is a real date field (not for example a text
field where someone is filling in a date) Perhaps you could check the
client's dataset.
Make sure you avoid reserved words like 'name' and 'date' for field names.
It may be worthwhile getting the client to check his references and make
sure none are missing.
If this is still a problem, you could go through the Windows control panel
settings with your client and try and replicate the problem.

Nov 13 '05 #7
Have posted this query to a Word newsgroup and from the replies I'm getting
it appears to be a bug with Word 2002. In case anyone out there gets a
similar problem and is interested the following website aricle may shed some
light.
http://homepage.swissonline.ch/cindy...r/MergFram.htm

Click the link for Merge in Word 2002 and then select link Numeric and date
formatting under Connection Methods article.

Thanks for all the help everyone and I'll keep you posted how it goes.

Dawn
"Justin Hoffman" <j@b.com> wrote in message
news:d9*********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Justin

Many thanks but have already tried this but still did not work.

Dawn

"Justin Hoffman" <j@b.com> wrote in message
news:d9**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
"Andy Davis" <ad******@westnet.com.au> wrote in message
news:42********@quokka.wn.com.au...
Thanks for that. Have already set the date format in the query but no
change.

Thanks again

"Rog" <ro************@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
> Could it be one of the pc's has a different regional setting? Try
> formatting the dates the way you want them in a query and use that as
> your source.

You can force Word to use your preferred date format by using what Word
calls 'field switches' and are set up from the Word document or
template.
You can get full details from the help file but in your case you simply
need
to make sure your merge field says something like: { MERGEFIELD MyDate
\@
"dd/MM/yyyy" }

Note you must use capital M for month - lower case m is for minute.


I have never seen the MS Word field switches overridden - whenever date or
currency issues have occurred between machines, I have found this to work.
When you say you tried it, you mean that it worked on your machine but not
on your client's? Did you do this personally on site or just receive
feedback from the client?
The only things that occur to me are:
Make sure the field in Access is a real date field (not for example a text
field where someone is filling in a date) Perhaps you could check the
client's dataset.
Make sure you avoid reserved words like 'name' and 'date' for field names.
It may be worthwhile getting the client to check his references and make
sure none are missing.
If this is still a problem, you could go through the Windows control panel
settings with your client and try and replicate the problem.

Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom Dauria | last post by:
I have an application that will be distributed remotely. In the Access application I am opening Word documents and mail merging. The Word documents are linked to a tmpLetter table. In my code I...
8
by: Ishbel Kargar | last post by:
Since upgrading from old laptop (Windows 98) to new laptop (Windows XP), my mail-merge letters are doing strange things with date formats. For instance, my reminder letter for lapsed subs carries...
2
by: William Wisnieski | last post by:
Hi Everyone, Access 2000 I have some code behind a button that performs a word merge with a query data source. The merge works fine. But what I'd like to do somehow is after the merge is...
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
9
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
4
by: lesperancer | last post by:
I have 3 tables (office97) tblQuote quoteNbr tblDetails ( quote : 1 <-> M: quoteDetails) quoteNbr detailLine product value
1
by: John Welch | last post by:
I'm trying to use the Mergit() function from the MS Knowledge base article to merge data from a query or table in my Access 2000 mdb into an existing word merge document. Every time it runs it...
1
by: kayberrie | last post by:
I want to write a VBA mail merge code. I want to link the code/macro/dohicky to a nifty little button so it makes life easy. I think I can handle the button part, the code part - not so much. I know...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.