I want to e-mail a recordset as an excel file. Here is what I have right now:
I know how to e-mail objects like queries, but I have never tried it with a recordset. Thoughts?
Thanks in advance,
PJ
Code:
Sub Mailrs()
Dim cnn1 As ADODB.Connection
Set cnn1 = CurrentProject.Connection
Dim rs As New ADODB.Recordset
rs.ActiveConnection = cnn1
rs.Open "SELECT * FROM tContract"
End Sub
I know how to e-mail objects like queries, but I have never tried it with a recordset. Thoughts?
Thanks in advance,
PJ