Can NEXTIF compare ADJACENT RECORDS?

J

Jason Krug

Hello-

I have worked with CINDY's WWW Page.

This solution uses the MS Knowledge Base
(http://support.microsoft.com/?kbid=105888) with SET, IF,
NEXTIF.

This example proceeds with the next record, based upon
the CHECK FLAG in the CURRENT RECORD. I can't do a last
record FLAG since selection criteria will pick different
records.

I would like to PROCEED to the NEXT record, if the NEXT
record has the same NAME as the CURRENT RECORD?

I am sending an email to people.
The people have multiple projects.
If R1 EMAIL-ADDRESS = R2 EMAIL-ADDRESS, then NEXT RECORD?

I was trying:
{SET LETTEREMAIL {MERGFIELD EMAIL} }
The Body Text
{MERGFIELD PROJECT}
{NEXTIF {MERGEFIELD EMAIL} = {LETTEREMAIL}}
{MERGFIELD PROJECT}

As you would guess, this is ALWAYS true, since MERGEFIELD
is always the current record.
I do not see a way to go BACK a record? To the PREVIOUS
record?

Is there a way to do that?

--Jason
 
J

Jason Krug

Graham-

Thank you, this is pretty clever.
I got it to work as described, but this does not work for
EMAILS. :(

This works well for DOCUMENTS since it uses a PAGE BREAK
to separate the actual letters. However, the EMAIL MERGE
creates a NEW EMAIL for each record. Therefore the
results are not as desired. :(

Is there a way to look forward to the next record, rather
than remember the previous record? I saw a MACRo that
took the DOCUMENT and made separate print jobs, is there
a MACRO to send to different email addresses?

SO CLOSE GRAHAM! THANK YOU FOR YOUR RESPONSE!
My problems do get help all the time.
--Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top