T
Tom Ross
Hi
I am using the SendObject method to send an email message to remind the QA
department of upcoming testing
DoCmd.SendObject , , , , , , "Internal Testing Needed for PO " &
Me.cmbProjectID & "-" & Me.PONum & " ", "Please check internal testing
reports for requirements of this purchase order ", False
That works fine. I would like to send the results of a query using values
from the form in that same message. I want to generate the query with an
SQL statement using controls on the form
"SELECT LineItems.ProjectID, LineItems.PONum, LineItems.ItemNum,
LineItems.InternalTest FROM LineItems WHERE projectid = '" &
Me.cmbProjectID "'"
Is there a way to put attach the results of this SQL query as spreadsheet
table or anything. The sendobject method wanted a name of a query and did
not accept an SQL statement
Thanks
Tom.
I am using the SendObject method to send an email message to remind the QA
department of upcoming testing
DoCmd.SendObject , , , , , , "Internal Testing Needed for PO " &
Me.cmbProjectID & "-" & Me.PONum & " ", "Please check internal testing
reports for requirements of this purchase order ", False
That works fine. I would like to send the results of a query using values
from the form in that same message. I want to generate the query with an
SQL statement using controls on the form
"SELECT LineItems.ProjectID, LineItems.PONum, LineItems.ItemNum,
LineItems.InternalTest FROM LineItems WHERE projectid = '" &
Me.cmbProjectID "'"
Is there a way to put attach the results of this SQL query as spreadsheet
table or anything. The sendobject method wanted a name of a query and did
not accept an SQL statement
Thanks
Tom.