Results 1 to 5 of 5
  1. #1
    beginner33 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    11

    Smile How to control Date format in Mailmerge export

    I am using Mailmerge to fill MS Word Documents with data from MS Access table. That works fine for years, but lately I have a problem with the format of one such field used for Date. It is always displayed in American way like “12/31/2011”, but I need “31.12.2011” style. Although the source data in MS Access table has a correct format: “31.12.2011” in MS Word the result always looks like “12/31/2011” no matter what you do. The problem appears when I start to use MS Office 2010. I noticed that this is not a problem in old MS Word documents that have been Mailmerge »connected« in my old Office 2000. The problem appears only, if I do the Mailmerge new from the scratch, with MS Office 2010. So far I couldn't find a way how to properly control, how the Date Mailmerge Field is displayed in MS Word. Nothing worked so far. I suspect that this is not necessary a bug in the MSOffice 2010, but there is probably only some setting or command in MS Word or MS Access, that I don't know.
    This maybe look very minor problem to someone, but I literally need to produce hundreds of such documents in MS Word and correcting this Date format manually, needs a lot of effort… Does anyone has a knowhow, how to do it? Thanks in Advance!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I remember another thread (can't find) with this very same issue. From what I can remember, there was no solution.

    Try google: Access 2010 date format mail merge
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    beginner33 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    11
    It really looks, that there is no such easy solution. I am thinking now about writing a VBA code for MS Word to change those date after mailmerge.

    The problem now is how to find this "AnyMonth/AnyDay/2012" string and replace it with "AnyDay.AnyMonth.2012" string.

    Can someone help me on this issue? Thanks!

  4. #4
    jongreen's Avatar
    jongreen is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Location
    Netherlands
    Posts
    1
    Add a switch to your format in the Word fieldcode
    \@ "d MMMM yyyy"

  5. #5
    anamta is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    1
    Thanks. I'll try to figure out how to test for CR code, and then add code to change LF TO CR LF when no CR's are found.
    _______________________
    anamta




Please reply to this thread with any new information or opinions.

Similar Threads

  1. Report export to Excel with format
    By mrswarrick in forum Access
    Replies: 3
    Last Post: 02-29-2012, 03:10 PM
  2. Replies: 3
    Last Post: 08-18-2011, 05:04 PM
  3. export format
    By kstyles in forum Reports
    Replies: 2
    Last Post: 07-07-2011, 07:01 PM
  4. Replies: 0
    Last Post: 03-24-2011, 11:09 PM
  5. Replies: 2
    Last Post: 09-29-2009, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums