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

Text file Import Question

Status
Not open for further replies.

cainemart

Programmer
Nov 28, 2001
70
0
0
US
We have an Excel program and imports bank text files and formats the numbers to be used in an Access database. So I suggested doing it in Access since the numbers end up in Access. But they told me that the same numbers were also used in Excel for some of their spreadsheet stuff... I was given the ok to do it in Access if I could tell them Access is more efficient than excel when it comes to importing and formatting info from a text file. So would Access be better? Or how could I figure this out without writing an import procedure in Access?

Thanks for reading this long post and thanks for any advice you pass.

cainebean
 
Access is more strict when it comes to importing data because you can type it. For instance, a column of text data with the following values,

C24631
789652

are not ambibuous if you import them into Access because you would have to type it as 'Text' data. If you import it into Excel it will determine the first value is text and the second value is numeric. You can then export the table data to Excel and it would be properly typed.


-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
In Access, you can define an export specification file in which you can define the EXACT way to export/import data from various sources including textfiles. That means you have more control over how to handle specific data found in textfiles.

Bye,
Jeroen
 
I appreciate both of your comments. I guess when I was asked the question I was thinking which would be faster!

Thanks again.

cainebean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top