A family of Microsoft relational database management systems designed for ease of use.
Before you can set up the Transfertext to do it in VBA, you have to create a file specification to use the Pipe instead of the quotes. This is easier done than said.
On the stupid Ribbon, click the External Data tab --> Text file in the Export (middle) section.
Click OK on the Export wizard without checking any box.
Leave the Format as Delimited and press Next.
Choose Comma for the delimiter and enter a pipe (|) in the box next to Text Qualifier.
Select whether you want field names.
Do not press Next - press Advanced. Click Save As and save it. Remember the name - the Specs button is the only way to look them up.
Click next and close. You do not need to save the steps if you want to set it up in vb.
For your Transfertext code, you would use TransferText to export the file using the spec created:
DoCmd.TransferText acExportDelim, "SpecName", "TableName", FileName, True
Where the Specname is the name you gave the specification, TableName is the name of your table and FileName is the name file.