Dustin Stanley
asked on
MS Access DoCmd.TransferText acExportDelim But For Creating New Files Not Existing Files.
I am familiar with using DoCmd.TransferText acExportDelim for exporting and writing over a EXISTING CSV file in a folder but what would I use to write a new file if it was not there?
Thanks for the help.
If Dir("C:\DailyExport\NewExport.CSV") <> "" Then
DoCmd.TransferText acExportDelim, "ExportToComExportSpecification2", "ComExportNewTemp", "C:\DailyExport\NewExport.CSV", True
Else
' put code here to elicit a new file name or you can add a number on to the name
End If
Thanks for the help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER