P
Paul Brady
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
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