M
michael c
I installed redemption to get around the outlook 2003
patch and have modified my code but i get a compile error
that reads "method or data member not found" and stops on
the .CreateItem line below. Any suggestions would be a
huge help and very appreciated. Thanks!!
Set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * " & _
"FROM [qryDistributionList]"
If Not rs.EOF Then
Do While Not rs.EOF
Dim SafeItem, oItem
Set SafeItem = CreateObject
("Redemption.SafeMailItem")
Dim SafeItem, oItem
Set SafeItem = CreateObject("Redemption.SafeMailItem")
Set oItem = Application.CreateItem(0)
SafeItem.Item = oItem
SafeItem.Recipients.Add rs![EmailAddress]
SafeItem.Recipients.ResolveAll
SafeItem.Subject = "Test Subject"
SafeItem.Body = "Test Body"
SafeItem.Send
rs.MoveNext
Loop
End If
End If
End Sub
patch and have modified my code but i get a compile error
that reads "method or data member not found" and stops on
the .CreateItem line below. Any suggestions would be a
huge help and very appreciated. Thanks!!
Set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * " & _
"FROM [qryDistributionList]"
If Not rs.EOF Then
Do While Not rs.EOF
Dim SafeItem, oItem
Set SafeItem = CreateObject
("Redemption.SafeMailItem")
Dim SafeItem, oItem
Set SafeItem = CreateObject("Redemption.SafeMailItem")
Set oItem = Application.CreateItem(0)
SafeItem.Item = oItem
SafeItem.Recipients.Add rs![EmailAddress]
SafeItem.Recipients.ResolveAll
SafeItem.Subject = "Test Subject"
SafeItem.Body = "Test Body"
SafeItem.Send
rs.MoveNext
Loop
End If
End If
End Sub