I have this code that works perfectly with XLS (Excel 2003) files, but now I need it to run CSV files
This creates and attaches the file to an email
Code:
DoCmd.SendObject acSendQuery, "OutputNewRecords", acExportDelim, , , , "New Record Data - " & Now, "Here are the latest Records", True
I've tried this but it still creates an XLS file
Code:
DoCmd.SendObject acSendQuery, "OutputNewRecords", acExportDelim, , , , "New Record Data - " & Now, "Here are the latest Records", True
This imports the files
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, strTableName, strFile, True
Am I missing something simple?