Create a module and insert this code.
Public Function MailNot()
Dim olkapps As Outlook.Application
Dim olknamespaces As Outlook.NameSpace
Dim objmailitems As Outlook.MailItem
Set olkapps = New Outlook.Application
Set olknamespaces = GetNamespace("MAPI")
Set objmailitems = olkapps.CreateItem(olMailItem)
With objmailitems
.To = NameRef
.Subject = "Subject Title"
.Body = "Text In Here"
.Importance = olImportanceHigh
.Attachments = "C:\Your File"
.Send
End With
Set objmailitems = Nothing
Set olknamespaces = Nothing
Set olkapps = Nothing
End Function
Then on your button that you want to use to send your emails put this code
Private Sub SendMail()
On Error GoTo Mailerr
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim MyDate As Date
Dim Msg
Set db = CurrentDb
Set rst = db.OpenRecordset("Your Table")
rst.MoveFirst
Do Until rst.EOF = True
NameRef = rst.Fields("Mail Name")
MailNot.MailNot
rst.MoveNext
Loop
Set rst = Nothing
Set db = Nothing
Mailend:
Exit Sub
Mailerr:
MsgBox Err.Description
Resume Mailend
End Sub
I haven't tested this but it should get you somewhere near.
Post back if you have problems.
Kev