🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TAccessApplication open database

#2648
From: OneEye
Date: Mon, 05 May 2003 13:54
31 lines
1634 bytes
Hi,

I don't know if this is the correct forum to post.
but is there anyone with some experience wit the TAccessApplication object?

I want to open and control MS Access from within my application.
since there is no visual TAccessApplication object I have to create
manually.

the code compiles.
when executed Access opens but then nothing happens. the db is not opened.

code:

Access = new TAccessApplication(Main); // Main is my main form
Access->ConnectKind=ckRunningOrNew;

Access->Connect();
Access->set_Visible(true);

AnsiString path = "G:\projects\Huurmanager\cleandb\huur.mdb";

wchar_t wstr[100];
path.WideChar(wstr,100); // convert AnsiString to wchar_t

Access->OpenCurrentDatabase(wstr,false);

thanks in advance for any comments.

grtz,
Maycel
Technical Details
Message-ID: <3eb67b13@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,756a97b7c741e3f2,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-05-05 07:58:07 PST
From: "OneEye" <m.kollau@home.nl>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: TAccessApplication open database
Date: Mon, 5 May 2003 15:54:09 +0200
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.204.154.8
Message-ID: <3eb67b13@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052146451 212.204.154.8 (5 May 2003 07:54:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail