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

word mailmerge from access updates date wrong

Status
Not open for further replies.

demi4u

Programmer
Aug 17, 2004
4
US
THIS CAN'T BE HARD!
But it is for me.

What I want. I have a malil merge doc that works perfectly. But the date of the letter after it has been saved changes when reopened.

Access mdb has data for membership. when a merged letter is sent out it is saved for later review.

I have used the word fields date and createdate each has their own errors.

When I use the date field it always updates to todays date. So if the letter was originally sent yesterday when we reopen the document its now with todays date.

If I use createdate the date is always the date that the document was originally created. I even tried merging to a template dot file hoping the create date would be updated thru the new document when you use wdsendtonewDocument destination.

Any hints help or direction would be greatly appreciated.
Google searches address everything but what I am looking for. :)
Access 2000 and word xp are the programs I am using.

Demi
 
Have you tried this ?
Selection.InsertDateTime DateTimeFormat:="dd/MM/yyyy", [highlight]InsertAsField:=False[/highlight]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hey PH, thank you, I was trying it from the Word side with a merge document, all the form fields are there.

Can this be done thru the word document itself or from...

From access vba module:
Your way would be to make a bookmark
then go to the bookmark and select the bookmark
and then use your code?

Sorry, Dan
 
I've found it as simple to add the current date NOW() to the query that feeds the mailmerge. In this way you just bring a constant value into the merge from the expression field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top