Link to home
Start Free TrialLog in
Avatar of TBayXXXV
TBayXXXV

asked on

Use a SQL statement to import text files

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?
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

You could write your own file handler in VBA using the filesystemobject.

Why is transfertext a problem?
Avatar of TBayXXXV
TBayXXXV

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I see.  Ok, thanks.