Exporting data into a pre-formatted file

后端 未结 3 1082
醉酒成梦
醉酒成梦 2020-12-22 00:47

I am using Access 2007 and I wish to export my data into a text file with a \'.\' separator. I don\'t seem to have any luck finding an answer so I wondering if it were possi

3条回答
  •  无人及你
    2020-12-22 01:34

    Working with a schema.ini file

    In MS Access

     Sub TransferData()
        'Assuming file exits
        Kill "z:\docs\export.txt"
        CurrentDb.Execute "select * into [text;database=z:\docs\].[export.txt] from table1"
     End Sub
    

    The Schema.ini file, which must be in the directory that is used for the export:

    [export.txt]
    Format=Delimited(.)
    DecimalSymbol=,
    

    More information: Schema.ini

提交回复
热议问题