J
jojo1uf
Ok, I am baffled. I have tried numerous things.................
I want to let the user select the criteria to perform a search. Then I would
like to export the search results to excel.
(Sample code if user selects an ENTITY. If they select more than one
criteria, I concatenate the strSQL to include all criteria.)
strSQL = "SELECT provider FROM invoicing WHERE provider = " & "'" &
Forms!SEARCH!ListEntity & "';"
I have already created a query with the name QSummary. So my intention was
to edit the QSummary somehow with strSQL.This is where my problem is. How do
I edit the results of an existing query with code in order to export to Excel?
DoCmd.TransferSpreadsheet acExport, 8, "QSummary", "C:\INVOICING.xls"
FollowHyperlink "C:\INVOICING.xls"
Any and all help is greatly appreciated. Thank you.
I want to let the user select the criteria to perform a search. Then I would
like to export the search results to excel.
(Sample code if user selects an ENTITY. If they select more than one
criteria, I concatenate the strSQL to include all criteria.)
strSQL = "SELECT provider FROM invoicing WHERE provider = " & "'" &
Forms!SEARCH!ListEntity & "';"
I have already created a query with the name QSummary. So my intention was
to edit the QSummary somehow with strSQL.This is where my problem is. How do
I edit the results of an existing query with code in order to export to Excel?
DoCmd.TransferSpreadsheet acExport, 8, "QSummary", "C:\INVOICING.xls"
FollowHyperlink "C:\INVOICING.xls"
Any and all help is greatly appreciated. Thank you.