Article View: borland.public.cppbuilder.database.ado
Article #3629Re: Display MS Access on a C++Builder
From: John R. Jones
Date: Sun, 21 Jul 2002 18:35
Date: Sun, 21 Jul 2002 18:35
51 lines
2475 bytes
2475 bytes
Hi there! you may find the ODBC Driver provided by Openlink useful to provide you with ODBC connectivity to the Access database in question. Although Access does have an ODBC Driver, you may find that it does not meet your requirements for example should you want ODBC connectivity across a network or from a non windows based machine. Using the OpenLink ODBC Driver suite will allow you to connect through the Access Driver but from non windows based O/S's and across a network. Have a gander at http://www.openlinksw.com for free evaluation, fully functional drivers HTH BR John "Shaun" <nospam@nospam.com> wrote in message news:<3d3ab34f_1@dnews>... > Hi, > > Theres a few ways to do it, heres one way with odbc. > > Make an ODBC Connection to your Access Database > > Then open builder and drop a TQuery, TDBGrid, TDatasource on a form. > > In the Object Inspector make these settings, > > Datasource1->Dataset = Query1 > DBGrid1-DataSource = DataSource1 > Query1->DatabaseName = [SELECT FROM THE COMBOBOX, YOUR ODBC ALIAS FOR YOUR > ACCESS DATABASE] > Query1->Sql [double click on (TStrings)] and in the String List editor Type: > select * from [table1] or whatever SQL statement that is relevant for you. > > Query1->Active = true. > > Your database should appear in your DBGrid at design time.To edit the column > widths right click on the DBGrid and select "Columns Editor" Right click, > select add all fields, then select a specific field and alter it in the > Object Inspector. > > Hope this helps > > regards Shaun
Technical Details
Message-ID:
<9342f465.0207211035.6cab1731@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<3D37253A.61F4A6F1@whsun1.wh.whoi.edi> <3d3ab34f_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,c823d6213a5737e9 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-21 11:35:33 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: jjones@openlinksw.co.uk (John R. Jones) Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: Display MS Access on a C++Builder Date: 21 Jul 2002 11:35:33 -0700 Organization: http://groups.google.com/ Lines: 51 Message-ID: <9342f465.0207211035.6cab1731@posting.google.com> References: <3D37253A.61F4A6F1@whsun1.wh.whoi.edi> <3d3ab34f_1@dnews> NNTP-Posting-Host: 62.30.112.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1027276533 7101 127.0.0.1 (21 Jul 2002 18:35:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Jul 2002 18:35:33 GMT