Hi,
I need to automate the transfer of data stored in a table 'tblChartData' into an Excel spreadsheet 'table' for chart plotting purposes.
I've tried using
DoCmd.TransferSpreadsheet acExport, , "tblChartData", "L:\TCH Traffic Chart.xls", False
and
DoCmd.TransferDatabase acExport, , "C:\WINNT\Profiles\tempnwmobile01\Desktop\mar30.mdb", , "traffic(E)", "L:\TCH Traffic Chart.xls", False
but to no avail. It gives an error msg of "Object tblChartData not found" and "Doesnt support the operation" respectively.
Where is the error in my coding? Am i using the right approach? Any advice is most appreciated.
I need to automate the transfer of data stored in a table 'tblChartData' into an Excel spreadsheet 'table' for chart plotting purposes.
I've tried using
DoCmd.TransferSpreadsheet acExport, , "tblChartData", "L:\TCH Traffic Chart.xls", False
and
DoCmd.TransferDatabase acExport, , "C:\WINNT\Profiles\tempnwmobile01\Desktop\mar30.mdb", , "traffic(E)", "L:\TCH Traffic Chart.xls", False
but to no avail. It gives an error msg of "Object tblChartData not found" and "Doesnt support the operation" respectively.
Where is the error in my coding? Am i using the right approach? Any advice is most appreciated.