I want to send a 100 emails and I have a 100 names in a table. How can I create one email and it look for the name and send out a 100 times with diffrent names?
SEt Db = CurrentDb()
Set Rs = db.OPenRecordset("SELECT * FROM MyTable;")
Do Until Rs.EOF
DoCmd.SendObject ...etc see help for syntax and using acSendNoObject setting
Rs.MoveNExt
Loop
Rs.Close
Set Rs = Nothing
Set Db = Nothing
Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now -
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.