PC Review


Reply
Thread Tools Rate Thread

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

 
 
zyzolus
Guest
Posts: n/a
 
      31st Jul 2007
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

 
Reply With Quote
 
 
 
 
John Nurick
Guest
Posts: n/a
 
      31st Jul 2007
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.

On Tue, 31 Jul 2007 12:24:29 -0700, zyzolus <(E-Mail Removed)> wrote:

>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

--
John Nurick - Access MVP
 
Reply With Quote
 
 
 
 
zyzolus@gmail.com
Guest
Posts: n/a
 
      1st Aug 2007
On 31 Lip, 21:56, John Nurick <j.mapson.nur...@dial.pipex.com> wrote:
> 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.
>
> On Tue, 31 Jul 2007 12:24:29 -0700, zyzolus <zyzo...@o2.pl> wrote:
> >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

>
> --
> John Nurick - Access MVP


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

Zol

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking a table from Excel starting from a specific row zyzolus Microsoft Access External Data 0 31st Jul 2007 07:52 PM
Linking an Access Database to an SQL Database Table LOgle via AccessMonster.com Microsoft Access Database Table Design 5 12th Jan 2006 09:46 PM
Linking Access Database to a specific Workgroup Information File =?Utf-8?B?VGJldHRz?= Microsoft Access 2 25th Mar 2005 09:02 PM
Linking an Access Database to one specific Workgroup Information =?Utf-8?B?VGJldHRz?= Microsoft Access 1 25th Mar 2005 08:39 PM
linking one access database to tables in another access database Zauny Microsoft Access External Data 1 2nd Oct 2003 02:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 PM.