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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing all fields in a text file as text without an import spec

Status
Not open for further replies.

JoGreen

Technical User
Apr 21, 2003
3
0
0
US
Hi...

Is there any way in VBA to import all fields in a text file as text without using an import spec?

My problem is that the field order and field name can vary slightly from import to import, but I need the fields to come in as text initially to avoid type mismatch errors.

Thanks for any suggestions.
 
I posted some sample, tested VBA code into an FAQ, it should be available in a day or two.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top