var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: File export at change in Cust?
I am working with large text files.
I have a request to break up 1 large text file into indiviudal files.
My data example is, i have more fields, but in hopes of keeping it simple this is what i have.
The large file currently has over 100 different CustID's. The request is to create a csv file at each change in the custID and to name the file "CustName".csv
i was able to create VBA code to export to CSV at the click of a button, however it exports the whole table or the whole query, how could i create it creates a file per?
Private Sub Command19_Click()
DoCmd.TransferText acExportDelim, , "qryMiffcoIncoming", "c:\my documents\\test_csv.csv"
'Shell "excel.exe C:\test_csv.xls ", vbNormalFocus ' Opens Specified file
Ummm... by using more than one line of code?!
Seriously, I don't know where to start. Command19, the double backslashes in the filepath, the uselessly copied Shell command or processing records one by one.
Owner and Manager of
CypherBYTE, Microsoft Access Development Specialists.
Microsoft Access MCP.
And all around nice guy!
"Heck it's something understood by accountants ... so it can't be 'that' difficult..."
"...teach a man to code and he'll be frustrated for life! "