🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #149

Re: Syntax for query-ing MS Excel data

#149
From: Minas
Date: Mon, 16 Apr 2007 20:30
30 lines
1742 bytes
Vladimir

I think you have to give a name to the range A1:B3 (for example tbl1)
You can do that through Insert->Names Menu in Excel .
That name(range) will be viewed as table . Just format your cells
before apply(give) the name. The cells of the first line will be the
names of the fields

Best Regards

_Minas Harokopos

------
"Only the virtue's conquests have certainty" Sofokleous Erephyle

� "Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote

>
> I have some questions on right syntax for querying MS EXCEL data.
>
> This syntax:
> SELECT * FROM [Sheet1$]
> ...works fine.
>
> But this one:
> SELECT * FROM [Sheet1$A1:B3]
> ...doesn't (I cought an exception in try&catch).
>
> Does anyone know how can I select only sheets in some range
> (A1 to B3, for example)
Technical Details
Message-ID: <4623ddd4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <461e9efb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9fc1933a1ef3478
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Minas" <min_charATyahooPUTADOTgr>
Newsgroups: borland.public.cppbuilder.database.ado
References: <461e9efb$1@newsgroups.borland.com>
Subject: Re: Syntax for query-ing MS Excel data
Date: Mon, 16 Apr 2007 23:30:34 +0300
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 62.1.229.93
Message-ID: <4623ddd4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1176755668 62.1.229.93 (16 Apr 2007 13:34:28 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail