Private Sub cmdSend_Click()
' Comments :
' Sends email to Contact notifying him/her that new
' findings have been entered into the database.
' Parameters:
' Created : 10/12/2000 12:19 PM TRC
' Modified : 09/21/2001 KBL Split FindingsEnter and
' FindingsReview into two forms/modules
' to allow for querying of existing
' findings
' --------------------------------------------------
' On Error GoTo PROC_ERR
Dim dbs As Database
Dim qryEmail As QueryDef
Dim rstEmail As DAO.Recordset
Dim GenlInfo As GenlInfo
Dim strTo As String
Dim strCC As String
Dim strMsg As String
Dim intHeaderID As Integer
GenlInfo = ggiGenlInfo
'Send email notification to Contact
DoCmd.SendObject acSendNoObject, , acFormatRTF, _
To:=GenlInfo.ContactEmail, _
Subject:="Procurement Card Findings (from entry screen)", _
MessageText:=GenlInfo.I2CText, _
EditMessage:=False
'Update date fields
Me.txtEmailToContactDate = Date
MsgBox "Notice sent to: " & GenlInfo.Contact, , "Email Sent"
cmdClose.SetFocus
cmdSend.Visible = False
DoCmd.GoToControl "cmdClose"
PROC_EXIT:
Exit Sub
PROC_ERR:
If Err.Number = 2501 Then 'user cancelled sendobject
Resume Next
End If
MsgBox Err.Number & ": " & Err.Description & vbCrLf & "in Module: Form_frmDocument, Proc: cmdSend_Click"
Resume PROC_EXIT
End Sub