davman2002
Programmer
I am trying to send a MS 97 query via email. I am using an ASP template file to format the output of the query. The code I current have does work but the problem I have is that the template file has a heading and My boss would like to to input the vendor name of the reciepent in the heading of the template file. At this time I do not know of a way to include this information in the code (or is it is at all possible) since I am looping thru a recordset. any help would be appreciated. here is my current test code.
While Not rst.EOF
' send mail.
DoCmd.SendObject acSendQuery, _
"TEST_REPORT", _
acFormatHTML, rst("email"
, , , _
"This is only a test", _
vbCrLf & vbCrLf & _
"TEST TEST TEST" & vbCrLf & _
"--------------" & vbCrLf & _
"This is a test, False, & _
"C:\physician_Rpt.asp"
Wend
While Not rst.EOF
' send mail.
DoCmd.SendObject acSendQuery, _
"TEST_REPORT", _
acFormatHTML, rst("email"
"This is only a test", _
vbCrLf & vbCrLf & _
"TEST TEST TEST" & vbCrLf & _
"--------------" & vbCrLf & _
"This is a test, False, & _
"C:\physician_Rpt.asp"
Wend