I have a command button that builds a text file based on a table. Like this:
DoCmd.TransferText acExportDelim, "MySpecs", "Mytable", "F:\Mytable.txt", True
That works fine, my problem is that the program that I have using this file for import into has to have a line of dashes between the field names and the data. Like this:
"Field1","Field2","Field3", etc.
----------------------
"Data1","Data2","Data3", etc.
Does anyone know how I could code this in so that the line of dashes are written into the text file? Any help would be appreciated!!!
DoCmd.TransferText acExportDelim, "MySpecs", "Mytable", "F:\Mytable.txt", True
That works fine, my problem is that the program that I have using this file for import into has to have a line of dashes between the field names and the data. Like this:
"Field1","Field2","Field3", etc.
----------------------
"Data1","Data2","Data3", etc.
Does anyone know how I could code this in so that the line of dashes are written into the text file? Any help would be appreciated!!!