Article View: borland.public.cppbuilder.database.ado
Article #1281Copying Excel Sheet to Access mdb as Table
From: uchan
Date: Tue, 14 Sep 2004 02:44
Date: Tue, 14 Sep 2004 02:44
18 lines
1374 bytes
1374 bytes
Hi I have troubles in Copying Excel Sheet to Accesss mdb as Table.
I wrote as follows.
ADOQuery2->SQL=Add("insert into access_table select * from
[D:\exceldata.xls.sheet1];");
ADOQuery2->ExecSQL();
when it was excuted OleException erro occurs(it didn't works.)
Thanks
Using BCB6 Pro
---------------------------
uchan
@OKAZAKI JAPAN
---------------------------
Technical Details
Message-ID:
<41465b3c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,554dceaed0ee4c4e,start X-Google-Attributes: gid10698b,public X-Google-Language: Japanese,JIS From: "uchan" <usami_takeshi@yahoo.co.jp> Newsgroups: borland.public.cppbuilder.database.ado Subject: Copying Excel Sheet to Access mdb as Table Date: Tue, 14 Sep 2004 11:44:25 +0900 Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 220.215.126.52 Message-ID: <41465b3c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095129916 220.215.126.52 (13 Sep 2004 19:45:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail