#1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
alex alex is offline
external usenet poster
 
Posts: 1
Default Syntax

Hi Using word with Excel as a datasource:
I want to say: I want to say:

If the data (date of birth) in that cell means the person is over 60yrs,
Then "we welcome volunteers that are more mature", Else "All volunteers
welcome".

{IF {MERGEFIELD DoB}= "=Today()-21900" "we welcome volunteers that are more
mature" "All volunteers welcome"}

Can someone tell me what i have done wrong please

Thanks

A

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Syntax

I would suggest that you use Excel to determine the age and then use the age
mergefield in your If...then...else construction in Word

{ IF { MERGEFIELD age } 60 "We welcome volunterrs that are more mature."
"All volunteers welcome." }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"alex" wrote in message
...
Hi Using word with Excel as a datasource:
I want to say: I want to say:

If the data (date of birth) in that cell means the person is over 60yrs,
Then "we welcome volunteers that are more mature", Else "All volunteers
welcome".

{IF {MERGEFIELD DoB}= "=Today()-21900" "we welcome volunteers that are
more mature" "All volunteers welcome"}

Can someone tell me what i have done wrong please

Thanks

A



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Syntax

Alternatively, if you are hell bent on doing it in Word, to see how to do
this and just about everything else you might want to do
with dates in Word, check out fellow MVP, Macropod's Date Calc 'tutorial',
at:

http://www.wopr.com/cgi-bin/w3t/show...?Number=249902

or at the following page of fellow MVP Graham Mayor's website

http://www.gmayor.com/downloads.htm#Third_party

where he has an item titled 'Date and Time Calculations In A Mailmerge'


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"alex" wrote in message
...
Hi Using word with Excel as a datasource:
I want to say: I want to say:

If the data (date of birth) in that cell means the person is over 60yrs,
Then "we welcome volunteers that are more mature", Else "All volunteers
welcome".

{IF {MERGEFIELD DoB}= "=Today()-21900" "we welcome volunteers that are
more mature" "All volunteers welcome"}

Can someone tell me what i have done wrong please

Thanks

A



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

See also comparing dates at http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

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


alex wrote:
Hi Using word with Excel as a datasource:
I want to say: I want to say:

If the data (date of birth) in that cell means the person is over
60yrs, Then "we welcome volunteers that are more mature", Else "All
volunteers welcome".

{IF {MERGEFIELD DoB}= "=Today()-21900" "we welcome volunteers that
are more mature" "All volunteers welcome"}

Can someone tell me what i have done wrong please

Thanks

A



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
syntax errors LW Microsoft Word Help 6 August 9th 07 06:23 AM
Find syntax for /*..........*/ ? Tadwick Microsoft Word Help 2 December 1st 06 04:31 AM
Formula - Syntax Error ArchieDog via OfficeKB.com Tables 2 June 8th 06 06:59 AM
Mailmerge calculations syntax Oly Mailmerge 1 February 16th 06 05:07 PM
Macro Syntax GregR New Users 2 May 2nd 05 06:43 PM


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