Importing from Text files.

D

doyapore

Dear All,
I wish to import from a text file which has records stored in fixed field
length manner.
Following are the field names and their respective lengths:
1. Code_no: 10 character.
2. Card_slno: 10 character.
3. Amount: 10 character.
After importing the relevant records, I also wish to convert the Amount
field into a numeric type data and place all the fields together in a table.

Thank you.
 
J

Jeff Boyce

Access provides tools/wizards to help you import a text file. If you will
be regularly importing data this way, consider setting up an Import
Specification, using an Import Table (to temporarily hold the import data),
and as many queries as you need to append/update your permanent data into
your (normalized) data structure.
 
D

doyapore

Thanks a ton.
May I ask another question: Where are the import specifications stored?

Thank you.
 
J

Jeff Boyce

That's a great question! I've never been able to figure out where Access
hides them away, but I know if I try to import a text file, I get a window
that lists Import/Export specs and lets me modify them.
 
R

Rick Brandt

Jeff said:
That's a great question! I've never been able to figure out where
Access hides them away, but I know if I try to import a text file, I
get a window that lists Import/Export specs and lets me modify them.

In two system tables.

MSysIMEXSpecs
MSysIMEXColumns
 
D

doyapore

You are an ace! I found the tables after enabling the system & hidden table
view under Tools -> Options -> View. At which point, another question arises
which is as follows:
MSysIMEXSpecs stores all the different types of text import specifications
which have been saved for various text import types. However, on opening the
MSysIMEXColumns one finds that the latest text import specifications have
been detailed therein. Where are the other text import specifications
stored, then?

Thanks in advance.
Merry Christmas and Seasons Greetings :)


Thank you once again.
 
J

Jeff Boyce

Thanks, Rick. I knew they had to be in there somewhere, I just never went
searching for them...

Jeff Boyce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top