Linking Excel table to Access database starting from a specific row.

Z

zyzolus

Hello!
I would like to link an Excel table to an Access database. However, I
would like to skip a couple of first, consecutive rows from Excel
datasheet. That datasheet is read-only so I can't use a named range or
modify it in any way.

What is the way to achive that?

Thank you for your advice.

Zol
 
J

John Nurick

Hi Zol,

Instead of using a linked table, create a query, switch to SQL view
and type in the appropriate SQL statement using syntax like this:

SELECT *
FROM [Excel 8.0;HDR=Yes;database=C:\Fdr\File.xls;].[Sheet1$A3:E99]
;

By starting the range at A3 you omit the first two rows. The HDR
argument controls whether the first row of the range is treated as
data or column headings. If the latter, the headings are used as field
names; if the former, the fields are named F1, F2, .. Fn.
 
Z

zyzolus

Hi Zol,

Instead of using a linked table, create a query, switch to SQL view
and type in the appropriate SQL statement using syntax like this:

SELECT *
FROM [Excel 8.0;HDR=Yes;database=C:\Fdr\File.xls;].[Sheet1$A3:E99]
;

By starting the range at A3 you omit the first two rows. The HDR
argument controls whether the first row of the range is treated as
data or column headings. If the latter, the headings are used as field
names; if the former, the fields are named F1, F2, .. Fn.

Hello!
I would like to link an Excel table to an Access database. However, I
would like to skip a couple of first, consecutive rows from Excel
datasheet. That datasheet is read-only so I can't use a named range or
modify it in any way.
What is the way to achive that?
Thank you for your advice.

Thank you for your very quick response!
This solution looks pretty resonable!

Zol
 

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