Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
MDI Anne MDI Anne is offline
external usenet poster
 
Posts: 8
Default Mergefield question

I have a database created in Access, and am pulling info from it to create
letters. I have an expiration date in the database that, when put into my
letter, I would like to add 1 year to the date. {MERGEFIELD "Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no where. Any
help would be greatly appreciated.

Thanx!!
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Mergefield question

Hi MDI Anne,

The MERGEFIELD solution depends on whether you're dealing with a day, month
& year, month & year or just a year. If its the last of these, it's simply a
matter of embedding your MERGEFIELD in a FORMULA field coded like:
{={MERGEFIELD "Expiration_Date"}+1}
For anything more complicated, check out the entries under 'Calculate a
month and year, using n years delay' and 'Calculate a day, date, month and
year, using n years delay' in my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
To use either of those fields, you could replace the 'DATE' references with
your {MERGEFIELD "Expiration_Date"} field. Alternatively, you could add
another SET field, like:
{SET ExpDate {MERGEFIELD "Expiration_Date"}}
immediately above or below the '{SET Delay 1}' line and replace the 'DATE'
references with 'ExpDate'.

Cheers

--
macropod
[MVP - Microsoft Word]


"MDI Anne" wrote in message
...
I have a database created in Access, and am pulling info from it to create
letters. I have an expiration date in the database that, when put into my
letter, I would like to add 1 year to the date. {MERGEFIELD

"Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no where.

Any
help would be greatly appreciated.

Thanx!!



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
MDI Anne MDI Anne is offline
external usenet poster
 
Posts: 8
Default Mergefield question

Mac...

Have tried your formula suggestion and I get the following... !Syntax Error, {

and yes, all that I want to do is add a year to the date...



"macropod" wrote:

Hi MDI Anne,

The MERGEFIELD solution depends on whether you're dealing with a day, month
& year, month & year or just a year. If its the last of these, it's simply a
matter of embedding your MERGEFIELD in a FORMULA field coded like:
{={MERGEFIELD "Expiration_Date"}+1}
For anything more complicated, check out the entries under 'Calculate a
month and year, using n years delay' and 'Calculate a day, date, month and
year, using n years delay' in my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
To use either of those fields, you could replace the 'DATE' references with
your {MERGEFIELD "Expiration_Date"} field. Alternatively, you could add
another SET field, like:
{SET ExpDate {MERGEFIELD "Expiration_Date"}}
immediately above or below the '{SET Delay 1}' line and replace the 'DATE'
references with 'ExpDate'.

Cheers

--
macropod
[MVP - Microsoft Word]


"MDI Anne" wrote in message
...
I have a database created in Access, and am pulling info from it to create
letters. I have an expiration date in the database that, when put into my
letter, I would like to add 1 year to the date. {MERGEFIELD

"Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no where.

Any
help would be greatly appreciated.

Thanx!!




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mergefield question

You will get a syntax error if you haven't entered it correctly. You need to
use CTRL+F9 for the field boundaries.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


MDI Anne wrote:
Mac...

Have tried your formula suggestion and I get the following... !Syntax
Error, {

and yes, all that I want to do is add a year to the date...



"macropod" wrote:

Hi MDI Anne,

The MERGEFIELD solution depends on whether you're dealing with a
day, month & year, month & year or just a year. If its the last of
these, it's simply a matter of embedding your MERGEFIELD in a
FORMULA field coded like: {={MERGEFIELD "Expiration_Date"}+1}
For anything more complicated, check out the entries under
'Calculate a month and year, using n years delay' and 'Calculate a
day, date, month and year, using n years delay' in my Date Calc
'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
To use either of those fields, you could replace the 'DATE'
references with your {MERGEFIELD "Expiration_Date"} field.
Alternatively, you could add another SET field, like:
{SET ExpDate {MERGEFIELD "Expiration_Date"}}
immediately above or below the '{SET Delay 1}' line and replace the
'DATE' references with 'ExpDate'.

Cheers

--
macropod
[MVP - Microsoft Word]


"MDI Anne" wrote in message
...
I have a database created in Access, and am pulling info from it to
create letters. I have an expiration date in the database that,
when put into my letter, I would like to add 1 year to the date.
{MERGEFIELD "Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no
where. Any help would be greatly appreciated.

Thanx!!



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
MDI Anne MDI Anne is offline
external usenet poster
 
Posts: 8
Default Mergefield question

Graham, you were totally correct! So, I entered it in using the
CTRL+F9...now all I get is the number 1.

This is so frustrating, not because of the awesome help I'm getting, but
because I know things can be done...but only know enough to get myself into
trouble!





"Graham Mayor" wrote:

You will get a syntax error if you haven't entered it correctly. You need to
use CTRL+F9 for the field boundaries.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


MDI Anne wrote:
Mac...

Have tried your formula suggestion and I get the following... !Syntax
Error, {

and yes, all that I want to do is add a year to the date...



"macropod" wrote:

Hi MDI Anne,

The MERGEFIELD solution depends on whether you're dealing with a
day, month & year, month & year or just a year. If its the last of
these, it's simply a matter of embedding your MERGEFIELD in a
FORMULA field coded like: {={MERGEFIELD "Expiration_Date"}+1}
For anything more complicated, check out the entries under
'Calculate a month and year, using n years delay' and 'Calculate a
day, date, month and year, using n years delay' in my Date Calc
'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
To use either of those fields, you could replace the 'DATE'
references with your {MERGEFIELD "Expiration_Date"} field.
Alternatively, you could add another SET field, like:
{SET ExpDate {MERGEFIELD "Expiration_Date"}}
immediately above or below the '{SET Delay 1}' line and replace the
'DATE' references with 'ExpDate'.

Cheers

--
macropod
[MVP - Microsoft Word]


"MDI Anne" wrote in message
...
I have a database created in Access, and am pulling info from it to
create letters. I have an expiration date in the database that,
when put into my letter, I would like to add 1 year to the date.
{MERGEFIELD "Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no
where. Any help would be greatly appreciated.

Thanx!!






  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mergefield question

That's what will happen if the expiration date is a complete date and not
simply a year. You need to read the link macropod posted and download his
date field file - then modify the appropriate field as indicated earlier in
the thread.

You should be able to get away with

{MERGEFIELD Expiration_Date \@ "d MMM "}{={MERGEFIELD Expiration_Date \@
"YYYY"} + 1}

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


MDI Anne wrote:
Graham, you were totally correct! So, I entered it in using the
CTRL+F9...now all I get is the number 1.

This is so frustrating, not because of the awesome help I'm getting,
but because I know things can be done...but only know enough to get
myself into trouble!





"Graham Mayor" wrote:

You will get a syntax error if you haven't entered it correctly. You
need to use CTRL+F9 for the field boundaries.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


MDI Anne wrote:
Mac...

Have tried your formula suggestion and I get the following...
!Syntax Error, {

and yes, all that I want to do is add a year to the date...



"macropod" wrote:

Hi MDI Anne,

The MERGEFIELD solution depends on whether you're dealing with a
day, month & year, month & year or just a year. If its the last of
these, it's simply a matter of embedding your MERGEFIELD in a
FORMULA field coded like: {={MERGEFIELD "Expiration_Date"}+1}
For anything more complicated, check out the entries under
'Calculate a month and year, using n years delay' and 'Calculate a
day, date, month and year, using n years delay' in my Date Calc
'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
To use either of those fields, you could replace the 'DATE'
references with your {MERGEFIELD "Expiration_Date"} field.
Alternatively, you could add another SET field, like:
{SET ExpDate {MERGEFIELD "Expiration_Date"}}
immediately above or below the '{SET Delay 1}' line and replace the
'DATE' references with 'ExpDate'.

Cheers

--
macropod
[MVP - Microsoft Word]


"MDI Anne" wrote in message
...
I have a database created in Access, and am pulling info from it
to create letters. I have an expiration date in the database
that, when put into my letter, I would like to add 1 year to the
date. {MERGEFIELD "Expiration_Date"}

I've tried doing a +1, and variations of that, but am getting no
where. Any help would be greatly appreciated.

Thanx!!



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
IF Condition Question Trudy Mailmerge 3 June 14th 06 02:45 PM
Exam question wrong about Word? Opinions, please! Jamie Furlong New Users 6 April 18th 06 11:56 AM
mail merge with 2 different last names to the same address mail merge 2 different last names Mailmerge 1 April 6th 06 07:34 AM
Supress blank lines Jan Mailmerge 5 March 6th 06 03:52 PM
formatting from a database in Word 2003 DowningDevelopments Mailmerge 2 February 9th 06 08:19 AM


All times are GMT +1. The time now is 08:48 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"