For some inexplicable reason one of my date merges in a form letter won’t format. Let me explain better. If I use a format switch (@ “d MMMM yyyy”) it displays today’s date but as soon as I remove the switch it shows the correct date but in the format (UK) 23/08/02 00:00:00.
Can anyone tell me why this is happening?
Thanks
Peter
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Date Formats in Mail Merge (W2K SP1)
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Date Formats in Mail Merge (W2K SP1)
- This topic has 8 replies, 3 voices, and was last updated 22 years, 7 months ago.
AuthorTopicWSherworth
AskWoody LoungerAugust 23, 2002 at 6:27 pm #375447Viewing 2 reply threadsAuthorReplies-
WBell
AskWoody_MVPAugust 23, 2002 at 6:57 pm #611072A couple of questions: What is you data source – a Word doc, and Excel workbook or Access database? And where are you viewing your field result, in the main document or in the resulting merged document.
If you are pulling the date from the system clock, the normal template (or whatever template is associated with the main merge doc) will control how a date is displayed by default. If on the other hand you are bringing it in from Excel or Access, they are likely to control the default display, which of course you can change is you indicate. Hope this helps.
-
WSherworth
AskWoody LoungerAugust 24, 2002 at 4:19 pm #611192Wendell
The process starts in Access. My code does a transfertext (Word MailMerge) to a text file and then opens the appropriate Word Doc. Most of the Docs work lt’s just 2 that get a recontact date originally from a Access Query via the txt file have suddenly stopped using the date as transferred when it is formatted. If I take the format off it shows the correct date but if I format it, it shows today’s date (in the format I want – but wrong date).
As I say, other merges work so I just can’t fathom it.
Peter -
WBell
AskWoody_MVPAugust 25, 2002 at 10:53 am #611263Hi Peter,
This is a bit of a puzzle. Question – are you viewing the merged document or are you looking at the main document with the option set to view sample data rather than field codes?
If it’s the latter, try actually mergeing a few records and see what is displayed. If it’s the former, is it possible that you’ve named the field “Date” which will likely confuse Word into supplying the current date rather than the intended field data.You might also consider taking your data directly from Access instead of creating a text file – we normally run merges that way unless we want to do some editing of the merge text before we run the merge. There are pros and cons to each approach, but the clutter of text files that get created is eliminated. Let us know what you find.
Wendell
-
WSherworth
AskWoody LoungerAugust 26, 2002 at 4:56 pm #611482Wendell
First of all I use a txt file between Access and Word because I operate most things via code from Access and I find opening a mailmarge letter directly linked to Access opens a 2nd Access file usually in a smaller window.
Plus I often kill the text files after use.
The date thing is baffling me. It shows today’s date in the sample or the merge when formatted. The mergefield record is called Recontact (I changed loads of fields with dodgy names a long time ago) and shows up correctly in the txt file (altho of course not formatted the way I want). I did notice however, that if I remove the time element from the txt record the mergefield then formats the way I want in the Word Doc (does that make sense?)
Peter -
WBell
AskWoody_MVPAugust 26, 2002 at 10:50 pm #611566That is a puzzle – why removing the time portion of the date would cause the date to display the correct information is a mystery. We routinely run date fields in merges and all is happy, though as I indicated in most cases we don’t create a text file. BTW, the problem with the second Access window is one that can be solved. Two things can cause that – the first is changing your application name to something other than “Microsoft Access” and the second is using Access security so that you get a login prompt. To make things behave better, change your application name so it says “Microsoft Access – My Application” – the security thing is harder to derail, but usually rears it’s head once the merge document has been saved in a confused state. If you are using security, let us know and I’ll try to go into some detail.
-
-
-
-
WSPhil Rabichow
AskWoody LoungerAugust 23, 2002 at 7:37 pm #611075Hi Peter:
Go into Start/Settings/Control Panel/Regional Settings/Date tab. Change the default short date style from
dd/MM/yy h:mm:ss (a guess, based on what you’re getting)
to
d MMMM yyyyBUT, make sure that you will be using that format all the time. You won’t be able to get a field to use a shorter format unless you either alter the Regional Settings or use a time switch.
Cheers,WSherworth
AskWoody LoungerAugust 27, 2002 at 8:00 pm #611797Wendell
I searched the KB and found this:
http://support.microsoft.com/default.aspx?…US;q220547&%5B/url%5D
(I really should find out how to do do those little links – is it the same as html hyperlinks, I wonder?)
I thought you and anyone else (including Phil, thanks) who’s followed this thread might be interested.
PeterEdited: and[/i]%20″] and tags added around the URL to make the link live. It’s that easy! -Mod.
-
WBell
AskWoody_MVPAugust 27, 2002 at 6:23 pm #611835I dismissed that article, as it referred to merges using an ODBC data source. Is your text file being used as an ODBC data source?
BTW, there is a link to the 1-Click TagPanel just to the right of the message subject that will create the HTML to display an active link. You can also type it as [ url ]www.mysite.com[ /url ]. Take out the spaces inside the brackets, and you can do a preview to see what you are about to post.
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
9 minutes ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
1 minute ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
1 hour, 4 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
1 hour, 14 minutes ago -
Removing bypassnro
by
Susan Bradley
1 minute ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
12 minutes ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
1 hour, 55 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
4 hours, 58 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
1 hour, 18 minutes ago -
Still version 23H2?
by
WSbxcfilm
5 hours, 46 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
11 hours, 43 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
12 hours, 37 minutes ago -
Where is Windows going?
by
Susan Bradley
2 hours, 54 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 6 hours ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 6 hours ago -
Windows 11 Hotpatch
by
Hackmuss
13 hours, 47 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 7 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
1 day, 1 hour ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
22 hours, 20 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 19 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
1 day, 3 hours ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day, 4 hours ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 day, 4 hours ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 20 hours ago -
How to remove an update preview
by
Gunny
23 hours, 39 minutes ago -
Third party add ins reminder
by
Susan Bradley
6 hours, 20 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 14 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
3 days, 1 hour ago -
How can I update “Explorer Patcher”
by
WSplanckster
3 days, 3 hours ago -
Check out the home page for Signal
by
CAS
3 days, 1 hour ago
Recent blog posts
- Removing bypassnro
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.