C
chancer via AccessMonster.com
I have a table of suppliers (tblSuppliers), including a field [email status]
(Yes/No)
I have a query (qrySuppliersToMail) that includes only the suppliers marked
Yes
I have an Outlook emailing routine (SendMail), which works ok
What I am now trying to do is create a routine that sends a mail for each of
the records in the qryt
ie
for each record in qrySuppliersToMail
SendMail [email address], strSubject, strBody
next
but i don't know the correct syntax
this line is failing:
Set rs = CurrentDb.OpenRecordset("qrySuppliersToMail")
and if I fix that i am not sure of the syntax of the loop
thanks in advance
(Yes/No)
I have a query (qrySuppliersToMail) that includes only the suppliers marked
Yes
I have an Outlook emailing routine (SendMail), which works ok
What I am now trying to do is create a routine that sends a mail for each of
the records in the qryt
ie
for each record in qrySuppliersToMail
SendMail [email address], strSubject, strBody
next
but i don't know the correct syntax
this line is failing:
Set rs = CurrentDb.OpenRecordset("qrySuppliersToMail")
and if I fix that i am not sure of the syntax of the loop
thanks in advance