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!

Delimited file import failing

Status
Not open for further replies.

DBAMJA

Programmer
Jul 25, 2003
169
US
I can't seem to figure out what is happening with my import. I have a file that uses the | as the delimiter. When I manually import the file it works just fine but as soon as I set up an import specification and use it, it blows up and doesn't recoginze the | as a delimiter.

Anyone else have this issue and know how to get around it?

[flush]

DBAMJA

It is said that God will give you no more than you can handle. I just wish God didn't have so much faith in me.
 
Sorry.... Here is the line in my code that I am using to import the file.


DoCmd.TransferText acImportFixed, "ResultsImport", "tblResults", "S:\Accounts Receivable\Shift4\CreditCardProcessing\" & sRemoteFile & ".txt"

[flush]

DBAMJA

It is said that God will give you no more than you can handle. I just wish God didn't have so much faith in me.
 
Shouldn't you be using acImportDelim if you have a | delimiter rather than acImportFixed?

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Thank you...I am an idiot!!!

[flush]

DBAMJA

It is said that God will give you no more than you can handle. I just wish God didn't have so much faith in me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top