Reply
 
Thread Tools Display Modes
  #1   Report Post  
Jim
 
Posts: n/a
Default Merge field formatting

Using MS Word 2000, I need to format a 6-digit merge field as a date.
I try: { MERGEFIELD Date1 \@ M/d/yy } where Date1 is the field name, but I
only get the six digits e.g. 102004 showing in my letter. What am I missing?
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

I think Word thinks your 102004 is a number.

Assuming it means 20th October 2004, as a first shot, try the following,
where each pair of {} are the special field braces you can insert using
ctrl-F9:

{ QUOTE { MERGEFIELD Date1 \#"00/00/00" } \@M/D/Y }

Make sure the M, D and Y are uppercase.

Peter Jamieson

"Jim" wrote in message
...
Using MS Word 2000, I need to format a 6-digit merge field as a date.
I try: { MERGEFIELD Date1 \@ M/d/yy } where Date1 is the field name, but I
only get the six digits e.g. 102004 showing in my letter. What am I
missing?



  #3   Report Post  
Jim
 
Posts: n/a
Default

Peter, thanks for the suggestion. However, I get an error: "Too many picture
switches defined." My date is coming in via a .CSV file. I don't know how I
could tell Word that the value is a date and not just a 6-digit number.

"Peter Jamieson" wrote:

I think Word thinks your 102004 is a number.

Assuming it means 20th October 2004, as a first shot, try the following,
where each pair of {} are the special field braces you can insert using
ctrl-F9:

{ QUOTE { MERGEFIELD Date1 \#"00/00/00" } \@M/D/Y }

Make sure the M, D and Y are uppercase.

Peter Jamieson

"Jim" wrote in message
...
Using MS Word 2000, I need to format a 6-digit merge field as a date.
I try: { MERGEFIELD Date1 \@ M/d/yy } where Date1 is the field name, but I
only get the six digits e.g. 102004 showing in my letter. What am I
missing?




  #4   Report Post  
Peter Jamieson
 
Posts: n/a
Default

Are you sure all the {} are field code braces? It seems to work OK here.

Try { MERGEFIELD Date1 \#"00/00/00" }

first, then create a new field

{ QUOTE "" \@M/D/Y }

and copy/paste the mergefield inside the quotes.

Peter Jamieson


"Jim" wrote in message
...
Peter, thanks for the suggestion. However, I get an error: "Too many
picture
switches defined." My date is coming in via a .CSV file. I don't know
how I
could tell Word that the value is a date and not just a 6-digit number.

"Peter Jamieson" wrote:

I think Word thinks your 102004 is a number.

Assuming it means 20th October 2004, as a first shot, try the following,
where each pair of {} are the special field braces you can insert using
ctrl-F9:

{ QUOTE { MERGEFIELD Date1 \#"00/00/00" } \@M/D/Y }

Make sure the M, D and Y are uppercase.

Peter Jamieson

"Jim" wrote in message
...
Using MS Word 2000, I need to format a 6-digit merge field as a date.
I try: { MERGEFIELD Date1 \@ M/d/yy } where Date1 is the field name,
but I
only get the six digits e.g. 102004 showing in my letter. What am I
missing?






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I omit an empty date merge field? Phildeman Microsoft Word Help 5 June 13th 05 03:29 PM
Merge Field Formatting Matty_b Mailmerge 1 May 10th 05 03:03 PM
Formatting a percentage mail merge field Kylor Microsoft Word Help 5 March 18th 05 07:04 PM
formatting percent field using mail merge PamWilhite Mailmerge 3 February 19th 05 08:58 AM
Home Phone field not getting picked up in Merge Cathleen McGuire Mailmerge 4 January 7th 05 03:13 AM


All times are GMT +1. The time now is 01:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"