Export Question

  • Cann anyone tell me the difference between these two lines of code?

    DoCmd.OutputTo acOutputTable, "dbo.tblTempExport", acFormatXLS, filename, False

     

    DoCmd.TransferSpreadsheet acExport, SpreadsheetTypeExcel9,  "dbo.tblTempExport", filename

    I couldn't get TransferSpreadsheet to work correctly, and switched to OutputTo after seing someone using it on google, but would like to know what the difference is between them.

    Thanks!

    Jason

     

     

    The Redneck DBA

  • transferspreadsheet wants the target xls file to already exist.  haven't used the output to.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply