MS Access and Bulk Insert

I am having issues in VB bulk inserting text file to MDB. This is code that works at many client sites. I have resorted to testing my command in Access to make sure it is fit.

below DOES NOT WORK. the data is inserted, but only one column is created and all data goes into one column with the commas.
FROM [Text;HDR=Yes;FMT=Delimited;Database=L:\22\vbapps.2015\SnapshotOP\SSImportOP\bin\x86\Release\].recordtype1.txt;

If I move the input file to D drive, below works:
SELECT * INTO Record1short
FROM [Text;HDR=Yes;FMT=Delimited;Database=D:\].recordtype1.txt;
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
This can only be true if you somehow have been granted limited rights to read from that networked folder - or a very bad network connection.
If you can import the same file from any other location, it has to be so.

Alternatively, you may use a completely different method for importing the file as described here:
Import large text file to Access table
1. Try delimiting the path with apostrophe characters:
FROM [Text;HDR=Yes;FMT=Delimited;Database='L:\22\vbapps.2015\SnapshotOP\SSImportOP\bin\x86\Release\'].recordtype1.txt;

Open in new window

2. Check for the existence of any SCHEMA.INI files and their content.

3. Check this registry key:
What is the value for Format?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JamesDBuskirkAuthor Commented:
Aikimark, I think we have a bingo. I found SCHEMA.INI files in my VB application and it is wrong (see below, I am creating COMMA delimited files). Sorry to have missed this I took this project over from another author and did not know of the schema.ini files. Even in Access, the presence of this schema file in the same folder as my import file seems to apply it. I just tested one that failed AFTER changing the schema.ini and it worked! Let me notify my team then I'll award the points. Gustav thank you also for assisting.

Should I fix the schema.ini in my project folder, then build it out to dEBUG/RELEASE or does this get created by VB?

on a rhetorical note, how can Microsoft not be able to figure this out? I spent an two hours on the phone with someone who just kept moving the file around and trying it over and over.

I changed the "|" to "," and now all is well! Thanks again!!!
JamesDBuskirkAuthor Commented:
Thanks !!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.