🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cbuilder4 & Excell97

#3483
From: Andre Hayward
Date: Sun, 04 Aug 2002 12:13
60 lines
2653 bytes
Vassiliev 

Thanks again but when trying to implement the stories I got various
error message which ranges from a syntax error to "The application has
improperly defined a Parameter object" when I include the statement
literally.  The square brackets normally indicates an option.  Jet SQL
in neither helpfull in their "source" part of the statement.  I've
tried combinations such as:

... from "Sheet1$" in "Excel...xls" to
....from "Sheet1$ in Excel....xls" to
....from [Sheet1$] in "Excel.....xls" to 
.....
but just don't get the syntax correct.  And the other thing, how can
one test this SQL statement other than running the program.  If you
try to open a query it tries to execute the SQL property and this is
not what you want.?

Thanks in advance

Andre Hayward

>Connect to Access db and execute

>Select * into NewTable from [Sheet1$] in ""[Excel
>8.0;Database=C:\Temp\ExcelFile.xls]

>NewTable should not exists in Access db. If you need add data to existing
>table, use

>Insert into DestTable(Col1, Col2, Col3) Select Col1, Col2, Col3 from
>[Sheet1$] in ""[Excel 8.0;Database=C:\Temp\ExcelFile.xls]

>Regards,
>Vassiliev V.V.
>http://www.oledbdirect.com


>"Andre Hayward" <jorhaypi@mweb.co.za> �������/�������� � �������� ���������:
>news:3d3a3373_1@dnews...
>> "Shaun" <nospam@nospam.com> wrote:
>>
>> >I'll post this answer in case anyone is interested, even if I have
>answered
>> >the question myself.
>>
>> Hi Shaun,
>>
>> Yes, I'm very interested thanks.
>>
>> One of the thinks I need to do some time in the future is to upload
>> Excel spreadsheet data into an Access database.  Please advise on the
>> origin of the "online tutorial".
>>
>> Best Regards
>>
>> Andre
>>
>>
>>
Technical Details
Message-ID: <3d4d1177_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3d210c8e$1_2@dnews> <3d39315d_2@dnews> <3d3a3373_1@dnews> <3d3a7900_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,d7212406486d45a7
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-04 04:42:09 PST
From: jorhaypi@mweb.co.za (Andre Hayward)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Cbuilder4 & Excell97
Date: Sun, 04 Aug 2002 12:13:07 GMT
Organization: Jordaan Hayward Inc.
References: <3d210c8e$1_2@dnews> <3d39315d_2@dnews> <3d3a3373_1@dnews> <3d3a7900_1@dnews>
X-Newsreader: Forte Free Agent 1.0.82
NNTP-Posting-Host: 196.31.185.157
Message-ID: <3d4d1177_2@dnews>
X-Trace: dnews 1028460919 196.31.185.157 (4 Aug 2002 04:35:19 -0700)
Lines: 64
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail