B
BigMick
I have been trying to send a reminder message to customers via email from
Access. The code I'm using is written below, but as You can probably see, I'm
a novice - self taught. Have tried the query name & feild name ie;
Qry_FilterReminder.Email & Also [Qry_FilterReminder]. but neither
work. Also as is written, Me.Email, but that cant find the feild. Have both
Outlook & Outlook Express on the system, prefer to use Outlook Express. Any
help would be greatly appreciated.
Cheers
BigMick
Private Sub FilterReminder_Click()
On Error GoTo ProcError
Dim stDocName As String
stDocName = "Qry_FilterReminder"
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.SendObject To:=Nz(Me.Email, ""), Subject:="Septic Tank Filter", _
MessageText:=" Your septic tank filter is
due for it's annual clean. Regards, BigMick . Effluent Services"
ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure FilterReminder_Click..."
Resume ExitProc
Exit Sub
Exit_FilterReminder_Click:
Exit Sub
Err_FilterReminder_Click:
MsgBox Err.Description
Resume Exit_FilterReminder_Click
End Sub
Access. The code I'm using is written below, but as You can probably see, I'm
a novice - self taught. Have tried the query name & feild name ie;
Qry_FilterReminder.Email & Also [Qry_FilterReminder]. but neither
work. Also as is written, Me.Email, but that cant find the feild. Have both
Outlook & Outlook Express on the system, prefer to use Outlook Express. Any
help would be greatly appreciated.
Cheers
BigMick
Private Sub FilterReminder_Click()
On Error GoTo ProcError
Dim stDocName As String
stDocName = "Qry_FilterReminder"
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.SendObject To:=Nz(Me.Email, ""), Subject:="Septic Tank Filter", _
MessageText:=" Your septic tank filter is
due for it's annual clean. Regards, BigMick . Effluent Services"
ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure FilterReminder_Click..."
Resume ExitProc
Exit Sub
Exit_FilterReminder_Click:
Exit Sub
Err_FilterReminder_Click:
MsgBox Err.Description
Resume Exit_FilterReminder_Click
End Sub