Export Only Certain fields within a table

crownedzero

Registered User.
Local time
Today, 05:58
Joined
Jun 16, 2009
Messages
54
I need to create a CSV from a table I have, however, I have an extra field that contains data our vendors do not need to see. The only method I'm familiar with is
Code:
DoCmd.TransferText acExportDelim
Any thoughts on this one?
 
I need to create a CSV from a table I have, however, I have an extra field that contains data our vendors do not need to see. The only method I'm familiar with is
Code:
DoCmd.TransferText acExportDelim
Any thoughts on this one?
Create a QUERY which contains only the fields you want exported and then use the DoCmd.TransferText with that QUERY instead of table. You can use queries anywhere you use tables (99% of the time).
 
I thought I might have to go that route but was hoping I could spare myself an additional dozen queries if I could just export the table -one. :(

Supposing I want to save it with the current date?

Code:
DoCmd.TransferSpreadsheet acExportDelim, "qryName", ???
 
Last edited:

Users who are viewing this thread

Back
Top Bottom