Article View: borland.public.cppbuilder.database.ado
Article #3487Re: Cbuilder4 & Excell97
From: Vassiliev V.V.
Date: Mon, 05 Aug 2002 07:46
Date: Mon, 05 Aug 2002 07:46
84 lines
3428 bytes
3428 bytes
May be $Sheet1 ($ at beginning) will help you. You can also use Select * from NamedDiapason where NamedDiapason is name of diapason in Excel file. I also sent you a demo that shows this. >>And the other thing, how can one test this SQL statement other than running the program I do not understand what you need. Regards, Vassiliev V.V. http://www.oledbdirect.com "Andre Hayward" <jorhaypi@mweb.co.za> �������/�������� � �������� ���������: news:3d4d1177_2@dnews... > 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:
<3d4e2d69_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mailReferences:
<3d210c8e$1_2@dnews> <3d39315d_2@dnews> <3d3a3373_1@dnews> <3d3a7900_1@dnews> <3d4d1177_2@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-05 01:05:25 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d210c8e$1_2@dnews> <3d39315d_2@dnews> <3d3a3373_1@dnews> <3d3a7900_1@dnews> <3d4d1177_2@dnews> Subject: Re: Cbuilder4 & Excell97 Date: Mon, 5 Aug 2002 11:46:54 +0400 Lines: 88 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.133.118 Message-ID: <3d4e2d69_1@dnews> X-Trace: dnews 1028533609 62.118.133.118 (5 Aug 2002 00:46:49 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail