How to use VBA to export a Table without Headers and Borders

B

Brad

I need to feed data from Access into an accounting system.
Here is the DoCmd.OutputTo command that I am testing with.

DoCmd.OutputTo _
acOutputTable, _
"tblCustomers", _
acFormatTXT, _
OutputFileName, _
False, _
"", _
0, _
acExportQualityPrint

I need to just feed the data with VBA with no headers and borders.
I cannot find an explanation on how to do this.

Thanks in advance for your help.
 
D

Dirk Goldgar

Brad said:
I need to feed data from Access into an accounting system.
Here is the DoCmd.OutputTo command that I am testing with.

DoCmd.OutputTo _
acOutputTable, _
"tblCustomers", _
acFormatTXT, _
OutputFileName, _
False, _
"", _
0, _
acExportQualityPrint

I need to just feed the data with VBA with no headers and borders.
I cannot find an explanation on how to do this.

Thanks in advance for your help.


For this I think you want to use DoCmd.TransferText instead. That lets you
write out the data as delimited text or in fixed-width format (defined by an
import/export specification you can create), as you choose.
 
B

Brad

Dirk,

Thank You!
Thank You!
Thank You!

The DoCmd.TransferText works great.
I really appreciate your help.

Thanks again,
Brad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top