W
William K
Hi all,
Working with Access 2003. Am trying to write a little sub that will send a
query as an excel attachment on an email. I done this before, but never with
a query. The query by itself runs without error, but when I try to run the
below code I get the error "Query must have at least one dstination field."
What does that mean and how do I fix it? Thanks much in advance for your
help.
Sub send_query()
DoCmd.SendObject acSendQuery, "store_report", acFormatXLS, _
"(e-mail address removed)", "(e-mail address removed)", , _
"Store Reports", "Here are your reports.", True
End Sub
Working with Access 2003. Am trying to write a little sub that will send a
query as an excel attachment on an email. I done this before, but never with
a query. The query by itself runs without error, but when I try to run the
below code I get the error "Query must have at least one dstination field."
What does that mean and how do I fix it? Thanks much in advance for your
help.
Sub send_query()
DoCmd.SendObject acSendQuery, "store_report", acFormatXLS, _
"(e-mail address removed)", "(e-mail address removed)", , _
"Store Reports", "Here are your reports.", True
End Sub