Hi
Can anyone tell me please how I can output a text file in .csv format from Access 2002 using VBA? I need to create this file to import into Sage accounts which has to be in csv format and I don't want the user to have the job of running a further conversion on the file. This is what I have so far, which creates the file but not in csv format.
stDocName = "qTickedforSage"
stFileDate = Format(Date, "dd.mm.yyyy")
stPath = "S:\job&invoice database\"
stFilename = stPath & "InvoicesForSage" & stFileDate
DoCmd.OutputTo acOutputQuery, stDocName, acFormatTXT, stFilename
Any help appreciated.
Moira
Can anyone tell me please how I can output a text file in .csv format from Access 2002 using VBA? I need to create this file to import into Sage accounts which has to be in csv format and I don't want the user to have the job of running a further conversion on the file. This is what I have so far, which creates the file but not in csv format.
stDocName = "qTickedforSage"
stFileDate = Format(Date, "dd.mm.yyyy")
stPath = "S:\job&invoice database\"
stFilename = stPath & "InvoicesForSage" & stFileDate
DoCmd.OutputTo acOutputQuery, stDocName, acFormatTXT, stFilename
Any help appreciated.
Moira