Get data from Excell - identify grouped rows

D

DianePDavies

I am writing code to load data from Excel into an Access table.

Data in Excell is structured in a nested form with group headings and a
number of rows making up this particular group total.

When loading tha data I would like to identify all my rows of - say - "level
1" and then load the related records from level 2.

How do I identify the "level 1" and "level 2" rows through VBA (the object
model)?

(I have posted this in the Excell group as well - but so far without any luck)
 
S

Stefan Hoffmann

hi,
Data in Excell is structured in a nested form with group headings and a
number of rows making up this particular group total.
As you don't need these structural information in Access:
Clone the sheet, remove the grouping and copy the data.


mfG
--> stefan <--
 
D

DianePDavies

...what does clone mean in this relation?

And I would like to know the grouping - as I want to load records as related
Access records with the group-header as a parent record and the rows in the
group as child records
 
S

Stefan Hoffmann

hi Diane,
..what does clone mean in this relation?
A copy of the worksheet.
And I would like to know the grouping - as I want to load records as related
Access records with the group-header as a parent record and the rows in the
group as child records
Take a look at the Outline property of your Worksheet object.


mfG
--> stefan <--
 

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