Solved

Use a SQL statement to import text files

Posted on 2007-11-15
4
173 Views
Last Modified: 2010-03-20
I am currently using 'DoCmd.TransferText' to import text files using the import specifications to bring the text files into a table.  Is there a way to import text files without using the DoCmd function?
0
Comment
Question by:TBayXXXV
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
Comment Utility
You could write your own file handler in VBA using the filesystemobject.

Why is transfertext a problem?
0
 

Author Comment

by:TBayXXXV
Comment Utility
In the future, the code is going to get converted to .net and I'm told that .net doesn't support the DoCmd function.  I was asked to look for an alternative.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 125 total points
Comment Utility
.net doesn't look anything like vba.
Nothing you write will convert to .net.


0
 

Author Comment

by:TBayXXXV
Comment Utility
I see.  Ok, thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now