Adezii's method looks good. Theres nothing worth watching on TV, so
here's a totally different approach, but I suggest you try it on a spare Accdb.
Create a query Query1
-
SELECT MSysIMEXSpecs.*
-
FROM MSysIMEXSpecs;
-
Run it. It will either give you an output if you have any saved Import/Export specifications, or give an error message that table MSysIMEXSpecs is not found.
In this case, select your query; On the Eternal Data Ribbon, select Export to Text File and run through everything. The critical thing is that after the export is done, a form comes up giving you the option of "Save Export Steps". Say yes.
This should create the MSysIMEXSpecs table
If you run Query1 again you should get a new record.
Here are the values you can try
DateDelim \
DateFourDigitYe ar -1
DateLeadingZero s 0
DateOrder
DecimalPoint .
FieldSeparator |
FileType 0
SpecID (This is an autonumber)
SpecName Test1
SpecType 1
StartRow
TextDelim ""
TimeDelim :
Save the record
Run this code
-
Sub ExportAsPipeDelimited()
-
-
DoCmd.TransferText acExportDelim, "Test1", "YourQueryName", CurrentProject.Path & "\YourOutputFile.CSV"
-
-
End Sub
-
No guarantees
Phil