Importing spreadsheet cells that have multiple values

  • Thread starter Thread starter Brandon
  • Start date Start date
B

Brandon

I am importing information from an excel 2003 spreadsheet into a 2003 Access
Database. The rows that I am importing contain a cell that has multiple
values in it ex. (125, 131, 6330). Each value is seperated by a comma and
space.

I am trying to create multiple tables with this information. The
spreadsheet's rows will be unique records in a table (tbl1) and the multiple
values would be in another table (tbl2) linked to tbl1 with a Many to one
relationship.

Does anyone have any ideas about how I can set this up. I would like to do
everything in access and not have to run any excel macros.

Thanks in advance!
 
I am importing information from an excel 2003 spreadsheet into a 2003 Access
Database.  The rows that I am importing contain a cell that has multiple
values in it ex. (125, 131, 6330).  Each value is seperated by a comma and
space.

I am trying to create multiple tables with this information.  The
spreadsheet's rows will be unique records in a table (tbl1) and the multiple
values would be in another table (tbl2) linked to tbl1 with a Many to one
relationship.

Does anyone have any ideas about how I can set this up.  I would like to do
everything in access and not have to run any excel macros.

Thanks in advance!

You could link to the spreadsheet, and then use SPLIT to break the
comma-separated data into an array of values. Then you'd just loop
through the array and write the data to the proper columns in your
Access table. Open a code window and open the help file and you'll
get all the gory details on Split().
 
Back
Top