Hello,
I have the following code kicking off an email based on a query result:
What I need help with is if the above report (query) doesn't have any data, don't send the email.
How would I accomplish this?
Thanks for your help.
I have the following code kicking off an email based on a query result:
Code:
DoCmd.SendObject acSendReport, "Transaction Notice", acFormatTXT, "jams@corwell.com", "sweeny@corwell.com", , "Transaction Notice", "The following fees were reported on today's report." & Chr(13) & Chr(13) & _
Chr(13) & Chr(13) & "Thank You" & Chr(13) & Chr(13)
What I need help with is if the above report (query) doesn't have any data, don't send the email.
How would I accomplish this?
Thanks for your help.