T2B said:
I'm asking the question because I pull raw sales data into an Access
table. Once in the table some data massaging is done.
The first column of the xls has a date which represents the date for
all succeeding rows until another date appears like:
09/01/2009 $20.00
null $25.00
null $21.00
null $15.00
09/02/2009 $15.00
null $15.00
null $22.00
09/03/2009 $12.00
null $25.00
null $21.00
null $18.00
etc.
If I can expect the rows to import in the same order as above, as in
the xls, I can run a function to fill down the dates for the nulls
once in Access.
Insert a column in the spreadsheet. In the first cell of that column,
enter a formula to return the row number of that cell's address:
=ROW(A1)
Then copy that formula to the other cells in the column. After
importing to Access, you can use the values from that column to
establish your row order.
If I can't expect the rows to import in the the same order I'll need
to come up with another routine.
If that Excel ROW() function approach is impractical, you could open the
worksheet as an ADO record set, and move through the rows to insert
each into your Access table.