Dim db as Database
Dim rs as Recordset
Set db=Currentdb
Set rs=db.OpenRecordset("qryEmail")
if rs.bof then
'no records in query
else
Set EmailApp = CreateObject("Outlook.Application") 'using the outlook object
Set NameSpace = EmailApp.GetNamespace("MAPI")
while not rs.eof
'use the outlook object model here...again do a search on the forum
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.Subject="Blah"
EmailSend.Body = "blah"
EmailSend.Recipients.Add(rs("UserEmail").Value)
EmailSend.Send
Set EmailSend=Nothing
rs.MoveNext
wend
end if
Set EmailSend=Nothing
Set rs=nothing
set db=nothing