C
corkster
I am using Access 2003 to send queries via email, by clicking on an
action button within a form with the following code. My problem is
that the queries that I am sending sometimes will not have any results.
How do I code the action button/form to restrict the emails to only
queries that have results?
Dim cc As String
Dim cc1 As String
Dim mb As String
cc = "FA Assigned Open Projects"
cc1 = "FA Assigned Open Projects v1"
mb = "FA Assigned Open Projects v2"
DoCmd.SendObject acSendQuery, cc, acFormatXLS, (e-mail address removed), , ,
"Project Assigned", "There is a new project for you", False
DoCmd.SendObject acSendQuery, cc1, acFormatXLS,
"(e-mail address removed)", , , "Project Assigned", "There is a new project
for you", False
'DoCmd.SendObject acSendQuery, mb, acFormatXLS,
"(e-mail address removed)", , , "Project Assigned", "There is a new project
for you", False
My dilemma is some of the queries have null results. How do I restrict
the emails to only those that have results?
action button within a form with the following code. My problem is
that the queries that I am sending sometimes will not have any results.
How do I code the action button/form to restrict the emails to only
queries that have results?
Dim cc As String
Dim cc1 As String
Dim mb As String
cc = "FA Assigned Open Projects"
cc1 = "FA Assigned Open Projects v1"
mb = "FA Assigned Open Projects v2"
DoCmd.SendObject acSendQuery, cc, acFormatXLS, (e-mail address removed), , ,
"Project Assigned", "There is a new project for you", False
DoCmd.SendObject acSendQuery, cc1, acFormatXLS,
"(e-mail address removed)", , , "Project Assigned", "There is a new project
for you", False
'DoCmd.SendObject acSendQuery, mb, acFormatXLS,
"(e-mail address removed)", , , "Project Assigned", "There is a new project
for you", False
My dilemma is some of the queries have null results. How do I restrict
the emails to only those that have results?