Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.TransferText Using Export Delimiter differently than ManExport?

Status
Not open for further replies.

kjv1611

New member
Jul 9, 2003
10,758
US
I've got a weird one - well, weird to me anyway.

In a database where a couple steps in a process include manually exporting tables to text files, I thought I'd automate that piece with DoCmd.TransferText.

Well, it works, but it spits the data out differently. Here's the differences I can see right away:
[tt]Manual: DoCmd.TransferText:
Tab Delim Comma Delim
Few Fields More Fields[/tt]

First, I thought I must have typed the delimiter wrong, and it must be that I'm using one that I didn't mean to. But I've double and triple verified that I'm using the same delimiter.

Is it possible that using the same export delimiter for multiple tables with different field counts could throw off the export delimiter in VBA, but not in the manual export??

Thanks for any suggestions..
 
I found it! I found the issue, ... I think... [smile]

Going to test, but duh... wasn't thinking... it's fixed width... so should be

DoCmd.TransferText acExportFixed

instead of

DoCmd.TrasnferText acExportDelim

So I'll test to be sure and post back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top