G
Guest
hi...i have a small problem and i hope someone can help. Thank u in advance.
The idea is to send a query created in code to Excel and then generate a
graph in Excel that i attach directly to report in access. I have seen that
graphs in Excel r easily maintained.
I am trying using code to export a dynamic crosstab query that re-genrates
itself everytime depending on specific criteria. The crosstab query has been
tested and works fine. However, the "docmd.Transferdatasheet" does not accept
the created string (i.e. crosstab query):
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, strSourceName,
strFileName, False
The "strSourceName" does not accept a created string in code. Can this be
resolved??
I have tried all sorts of methods, but couldn't find the right solution.
Furthermore, is there a another solution that re-creates an Excel graph
directly from a query??!
Thanx again
The idea is to send a query created in code to Excel and then generate a
graph in Excel that i attach directly to report in access. I have seen that
graphs in Excel r easily maintained.
I am trying using code to export a dynamic crosstab query that re-genrates
itself everytime depending on specific criteria. The crosstab query has been
tested and works fine. However, the "docmd.Transferdatasheet" does not accept
the created string (i.e. crosstab query):
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, strSourceName,
strFileName, False
The "strSourceName" does not accept a created string in code. Can this be
resolved??
I have tried all sorts of methods, but couldn't find the right solution.
Furthermore, is there a another solution that re-creates an Excel graph
directly from a query??!
Thanx again
