Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email memory problem

Status
Not open for further replies.

armstrong722

Technical User
Feb 26, 2002
32
0
0
US
this the code I'm using and when I try it, it sends out the first email and then says there isn't enough memory to perform this operation.

Any ideas would be much appreciated

Private Sub Email_Everyone_Click()
On Error GoTo Email_Everyone_Click_Err
Dim Db As Database
Set Db = CurrentDb
'this is hardwired with a query
Set Rst = Db.OpenRecordset("email minor tryouts", dbOpenDynaset)

'do the loop until all records are done
While Not Rst.EOF

subject = "Minor League Tryouts"
message = "See you there! Saturday March 23, 2002 9:00-11:00 This is for 7-9 year olds who have not been in Minor League before for a talent evaluation."



EmailList = Rst!email






DoCmd.SendObject acSendNoObject, , , EmailList, "", "", subject, message, False, ""


Rst.MoveNext

Wend


Email_Everyone_Click_Exit:
Exit Sub

Email_Everyone_Click_Err:
MsgBox Error$
Resume Email_Everyone_Click_Exit



End Sub
 
Ok then....

How about any suggestions on how I might try and debug something like this. What should I isolate?

armstrong
 
It worked for me. I know that doesn't help you any. Is it an Access error or an Outlook Error?
Pat B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top