madvalpreston
Technical User
Hi
I want to email a quotation report based on a survey type I have this code.....
Private Sub Command103_Click()
Dim StDocName As String
If MsgBox("This will send Quote to your Client. Continue?", _
vbExclamation + vbYesNoCancel) = vbYes Then
StDocName = "quotedem"
DoCmd.SendObject acSendReport, Combo38.Column(2), acFormatPDF, , "type = '" & Combo38.Column(1) & "' AND IDquote = " & idquote
End If
Set rs = Nothing
End Sub
This selects the correct survey type and creates the correct document, it also goes to email. My problem is I want it to insert the email address of the client in the TO: part.
I ahve the email address in a table called tblcleint.cleintemail and this is linked to the quote.
Any ideas how I can change the code so it can get the correct email address and it appear in the TO:
Thanks
I want to email a quotation report based on a survey type I have this code.....
Private Sub Command103_Click()
Dim StDocName As String
If MsgBox("This will send Quote to your Client. Continue?", _
vbExclamation + vbYesNoCancel) = vbYes Then
StDocName = "quotedem"
DoCmd.SendObject acSendReport, Combo38.Column(2), acFormatPDF, , "type = '" & Combo38.Column(1) & "' AND IDquote = " & idquote
End If
Set rs = Nothing
End Sub
This selects the correct survey type and creates the correct document, it also goes to email. My problem is I want it to insert the email address of the client in the TO: part.
I ahve the email address in a table called tblcleint.cleintemail and this is linked to the quote.
Any ideas how I can change the code so it can get the correct email address and it appear in the TO:
Thanks