@
@sh
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_RecipientsForCampaign.EOF
SEND THE EMAIL HERE...
RS_RecipientsForCampaign.MoveNext
If NOT RS_RecipientsForCampaign.EOF Then
** Do While TheUsersEmailAddress =
RS_RecipientsForCampaign("Email") AND NOT RS_RecipientsForCampaign.EOF
RS_RecipientsForCampaign.MoveNext
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_RecipientsForCampaign.EOF
SEND THE EMAIL HERE...
RS_RecipientsForCampaign.MoveNext
If NOT RS_RecipientsForCampaign.EOF Then
** Do While TheUsersEmailAddress =
RS_RecipientsForCampaign("Email") AND NOT RS_RecipientsForCampaign.EOF
RS_RecipientsForCampaign.MoveNext
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