D
Daniel
Hello,
This is a Query/VBA question.
I have a query which is returning a listing of people past due by month.
Thus, an individual's name may appear more than once if they are past due for
more than one month. I am using vba to perform this query and then wish to
send an e-mail automatically to each individual.
---
strSQL = ...
Set rst = db.OpenRecordset(strSQL)
lngCount = 0
If rst.RecordCount > 0 Then 'ensure there are members defined
'Build Email Recipient Listing to send the email to
rst.MoveFirst
Do While Not rst.EOF
With rst
'Send email
.MoveNext
End With
Loop
'CleanUp
rst.Close
Set rst = Nothing
---
My current method will send an email for each month returned instead of
grouping them together. How can I modify my code to only send one email
specifying which months are owed?
Thank you,
Daniel P
This is a Query/VBA question.
I have a query which is returning a listing of people past due by month.
Thus, an individual's name may appear more than once if they are past due for
more than one month. I am using vba to perform this query and then wish to
send an e-mail automatically to each individual.
---
strSQL = ...
Set rst = db.OpenRecordset(strSQL)
lngCount = 0
If rst.RecordCount > 0 Then 'ensure there are members defined
'Build Email Recipient Listing to send the email to
rst.MoveFirst
Do While Not rst.EOF
With rst
'Send email
.MoveNext
End With
Loop
'CleanUp
rst.Close
Set rst = Nothing
---
My current method will send an email for each month returned instead of
grouping them together. How can I modify my code to only send one email
specifying which months are owed?
Thank you,
Daniel P