DoCmd.OutputTo, DoCmd.TransferSpreadsheet, and DoCmd.TransferText fails in Access 2016

Greg Finzer 21 Reputation points
2020-12-30T12:33:41.157+00:00

I am running several commands as part of my Access application, none of them work now in Access 2016. It locks up access and never responds.

DoCmd.OutputTo acOutputReport, reportName, acFormatRTF, exportFilePath
Call DoCmd.TransferSpreadsheet(acExport, acSpreadsheetTypeExcel9, queryName, exportFilePath, True)
DoCmd.OutputTo acOutputReport, reportName, acFormatHTML, exportFilePath, 0
DoCmd.OutputTo acOutputReport, reportName, acFormatHTML, exportFilePath, 0
Call DoCmd.TransferText(acExportDelim, "", TableName, path, True)
Developer technologies | Visual Basic for Applications
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AccessVandal 1 Reputation point
    2021-01-07T05:29:44.107+00:00

    Hi GregFinzer,

    Can't tell what is wrong.

    "reportName" and "exportFilePath"....are these variables declared?

    It's better that you show us your full code.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.