Hi guys,
Anyone give me a clue why this code doesn't work
-------------------------------------
Public Function MailIt()
On Error GoTo MailIt_Err
DoCmd.SendObject acSendTable, "tblXXYY", acFormatXLS,
"wh*****@wherever.com", , , "Table update", "Message body", False
Beep
MsgBox "Table update sent as Excel file!", vbOKOnly, ""
MailIt_Exit:
Exit Function
MailIt_Err:
MsgBox Error$
Resume MailIt_Exit
End Function
---------------------------------------
activated from a macro - it simply errors out with the message "Database
couldn't save data to the file you've selected" whereas when I open tblXXX
and send it using File Send to >> Mail Recipient as Attachment Excel.xls it
does work??
Any workarounds??
JohnG