Importing an Excel file

T

Tony Williams

I have an Excel that I need to import on an almost daily basis into an Access
2003 database. I have created the fields in the table with names that follow
the normal convention, avoiding spaces etc. However the column names in the
spreadsheet will not be the same as the field names in the table. Is there
anyway that I can automate the mapping of the fields so that the data from
the columns goes into the right field in the table or would it be easier to
adandon the idea of properly structured filed names and just use the column
headings as field names?
Thanks
Tony
 
D

Douglas J. Steele

You could link to the spreadsheet, then run an Append query that takes the
data from the spreadsheet and puts it in your table.
 
T

Tony Williams

Thanks for that pointer Douglas. What about the differing field/column
names? I remember when I used to use Lotus Approach in the Dark Ages, when
you imported data you had an opportunity to map fields together. I don't
seem to be able to find the same facility in Access 2003. Am I correct or
have I missed it?
Thanks again, as ever.
Tony
 
D

Douglas J. Steele

When you linked to the spreadsheet, your linked table would have the names
of the columns in the spreadsheet. In your Append query, you'd do the
mapping between the Excel names and the Access names.
 

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