Guys,
I've written an email sending script to mass send to our database - some of
our subscribers are subscribed to multiple list, and so when selecting the
entire database, I want to ensure I don't have Duplicates.
To avoid this, I am selecting the recordset of all users, ordering by Email
address, sending the email, moving onto the next record and then starting a
loop to keep looping until the email address is different, but it doesn't
work... see example below...
-----------------------------------
Do While NOT RS_RecipientsFo rCampaign.EOF
SEND THE EMAIL HERE...
RS_RecipientsFo rCampaign.MoveN ext
If NOT RS_RecipientsFo rCampaign.EOF Then
** Do While TheUsersEmailAd dress =
RS_RecipientsFo rCampaign("Emai l") AND NOT RS_RecipientsFo rCampaign.EOF
RS_RecipientsFo rCampaign.MoveN ext
Loop
End If
Loop
-----------------------------------
When running, the script works fine, BUT I get an Unspecified error (I HATE
that message) at the end of the script, pointing me to the line number
marked with ** above.
How can I cure this? I've tried everything but need a solution to amend this
section of code that works!!
Cheers, Ash
I've written an email sending script to mass send to our database - some of
our subscribers are subscribed to multiple list, and so when selecting the
entire database, I want to ensure I don't have Duplicates.
To avoid this, I am selecting the recordset of all users, ordering by Email
address, sending the email, moving onto the next record and then starting a
loop to keep looping until the email address is different, but it doesn't
work... see example below...
-----------------------------------
Do While NOT RS_RecipientsFo rCampaign.EOF
SEND THE EMAIL HERE...
RS_RecipientsFo rCampaign.MoveN ext
If NOT RS_RecipientsFo rCampaign.EOF Then
** Do While TheUsersEmailAd dress =
RS_RecipientsFo rCampaign("Emai l") AND NOT RS_RecipientsFo rCampaign.EOF
RS_RecipientsFo rCampaign.MoveN ext
Loop
End If
Loop
-----------------------------------
When running, the script works fine, BUT I get an Unspecified error (I HATE
that message) at the end of the script, pointing me to the line number
marked with ** above.
How can I cure this? I've tried everything but need a solution to amend this
section of code that works!!
Cheers, Ash
Comment