Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Paul Brady Paul Brady is offline
external usenet poster
 
Posts: 3
Default NEXTIF works iin W2000, but not properly in W2002

Please forgive this cross post. I had put it in the Word group, which
is somewhat dormant, and was not aware that there was a specific group
for Mailmerge.
--------------------------------
The problem in a nutshell is that the pointer to the records in my
data file is not being properly bumped with NEXTIF in W2002, but works
fine in W2000.

I have an MS Access program that exports an rtf file telling
volunteers when to appear for their assignments in a season, such as
spring 2008. A volunteer can have one or more slots. A letter is
sent to the volunteer telling her when to appear. Each appearance is
on one line of the letter. Thus the letter might look like:
------------------------------------
Sally Smith (address)
Dear Sally, You are scheduled for

Monday 3pm
Tuesday 4pm
Tuesday 5pm

Regards, Betty, Volunteer coordinator
---------------------------------
The rtf file looks like: (2nd field is total for that person)
John Davis 1 Wednesday 2pm
Sally Smith 3 Monday 3pm
Sally Smith 3 Tuesday 4pm
Sally Smith 3 Tuesday 5pm
Sandy Byard 1 Wednesday 3pm

Everything is fine in Word2000. But it doesn't work right with Word
2002. The problem is the "NEXTIF" (Next Record If) statement at the
start of the assignment line. It tests to see how many items are left
for Sally, and stays on that page if there are any, else it drops to
the bottom and goes to the next person. What happens in W2002 is:

John Davis is correctly printed with one entry on his letter.
Sally is correctly printed with three entries on her letter.
But then, instead of going on to Sandy, Word seems to back up two
records and prints a letter for Sally starting with her 2nd entry,
namely Tuesday at 4pm. She gets two entries in that letter. Then it
does it again
for Sally, printing a letter with just her 3rd entry. Fijnally, it
does go on to Sandy.
It seems that the NEXTIF statement is bumping some internal
pointer to get Sally's records, but there is another pointer that gets
bumped only when a letter is finished, and this is bumped only one
place.
Because this works fine in Word 2000, I am suspecting a bug in
Word 2002. I searched thru Google and Microsoft Web Page and found no
referenct to this, and also found no reference in more than 4000
postings to this newsgroup. Has anyone seen this?
Pete Brady
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default NEXTIF works iin W2000, but not properly in W2002

Hi Paul,

I was just about to ask in the other group if you could send the sample
files as you suggested, as it would make things a lot simpler for me. But
then I got waylaid.

To send, you'll need to take the KillmapS out of


--
Peter Jamieson
http://tips.pjmsn.me.uk

"Paul Brady" wrote in message
...
Please forgive this cross post. I had put it in the Word group, which
is somewhat dormant, and was not aware that there was a specific group
for Mailmerge.
--------------------------------
The problem in a nutshell is that the pointer to the records in my
data file is not being properly bumped with NEXTIF in W2002, but works
fine in W2000.

I have an MS Access program that exports an rtf file telling
volunteers when to appear for their assignments in a season, such as
spring 2008. A volunteer can have one or more slots. A letter is
sent to the volunteer telling her when to appear. Each appearance is
on one line of the letter. Thus the letter might look like:
------------------------------------
Sally Smith (address)
Dear Sally, You are scheduled for

Monday 3pm
Tuesday 4pm
Tuesday 5pm

Regards, Betty, Volunteer coordinator
---------------------------------
The rtf file looks like: (2nd field is total for that person)
John Davis 1 Wednesday 2pm
Sally Smith 3 Monday 3pm
Sally Smith 3 Tuesday 4pm
Sally Smith 3 Tuesday 5pm
Sandy Byard 1 Wednesday 3pm

Everything is fine in Word2000. But it doesn't work right with Word
2002. The problem is the "NEXTIF" (Next Record If) statement at the
start of the assignment line. It tests to see how many items are left
for Sally, and stays on that page if there are any, else it drops to
the bottom and goes to the next person. What happens in W2002 is:

John Davis is correctly printed with one entry on his letter.
Sally is correctly printed with three entries on her letter.
But then, instead of going on to Sandy, Word seems to back up two
records and prints a letter for Sally starting with her 2nd entry,
namely Tuesday at 4pm. She gets two entries in that letter. Then it
does it again
for Sally, printing a letter with just her 3rd entry. Fijnally, it
does go on to Sandy.
It seems that the NEXTIF statement is bumping some internal
pointer to get Sally's records, but there is another pointer that gets
bumped only when a letter is finished, and this is bumped only one
place.
Because this works fine in Word 2000, I am suspecting a bug in
Word 2002. I searched thru Google and Microsoft Web Page and found no
referenct to this, and also found no reference in more than 4000
postings to this newsgroup. Has anyone seen this?
Pete Brady


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
Word 2002 NEXTIF won't properly advance pointer. Pete Brady Microsoft Word Help 2 February 12th 08 07:47 PM
Turning text upside down in W2002 Rich57 Microsoft Word Help 1 December 19th 07 02:50 PM
NextIf MilesMonkMingus Mailmerge 1 August 25th 05 07:37 PM
nextIf MilesMonkMingus Mailmerge 1 August 25th 05 07:35 PM
W2002 Format AutoShape color options drkusa Microsoft Word Help 0 May 14th 05 12:20 AM


All times are GMT +1. The time now is 08:38 AM.

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"