Good evening everybody,
I currently have a button on my form that creates a spreadsheet based on a query called "Area". The name of the spreadsheet is based on a field on the current record on the form
What I want to do is add a way to email the spreadsheet to a recipient based on a field that contains a recipients email address.
Thanks for your help
I currently have a button on my form that creates a spreadsheet based on a query called "Area". The name of the spreadsheet is based on a field on the current record on the form
Code:
Private Sub Command6_Click()
FileName = PathName & Forms!Areas!Area & ".xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Area", FileName, True
End Sub
What I want to do is add a way to email the spreadsheet to a recipient based on a field that contains a recipients email address.
Thanks for your help