I am trying to create a csv file that will be imported into ADP PC/Payroll system.
My first try created an error:
Cannot update. Database or object is read-only.
My second try created gibberish when the file is opened in NotePad:
My third try is this:
This works great except that one of the field names is "File #" -- this is required. The # is causing me problems. It is being converted to a period (.).
How can I make the header appear as "File #".
I have to get this to work by Thursday!
Thanks in advance for any help.
Debbie
My first try created an error:
Code:
strSaveFileName = "C:\ADP\PCPW\ADPDATA\"
strSaveFileName = strSaveFileName & "EPI" & CoCode & BatchID & ".csv"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tblADP", strSaveFileName, True
My second try created gibberish when the file is opened in NotePad:
Code:
DoCmd.OutputTo acOutputTable, "tblADP", acFormatXLS, strSaveFileName, False
My third try is this:
Code:
DoCmd.TransferText acExportDelim, , "tblADP", strSaveFileName, True
How can I make the header appear as "File #".
I have to get this to work by Thursday!
Thanks in advance for any help.
Debbie