Solved

delphi3 msaccess 2000

Posted on 2000-05-16
6
272 Views
Last Modified: 2010-04-04
I am using delphi3 standard and am trying to use a msaccess database (office 2000)to write information into a msaccess table (I can do this with parodox no sweat) I get also sorts of errors like "could not find idodbc32.dll" I presume it has either something to do with the fact I am using office2000 or I am missing some part in Delphi. I have even tried to get into it via odbc and get a different error but no success (to try this method I went step by step from the book -being "Sams teach yourself Delphi 3 in 14 days" -should actually say 14 years though)
If anybody can help with this it would be much appreciated
0
Comment
Question by:monitorwa
  • 3
  • 2
6 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2815523
hi,
the following works for me :


Odbc:

1:   Open Control Panel, and then select ODBC DataSources (32bit) .
2:   When the Data Source Administrator appears, Click Add.
3:   find the one that says  Microsoft Access Driver (*.mdb)
     click it and click finish.
4:   A dialog will popup called ODBC Microsoft Access Setup
5:   in "data source name" edit box well call it "MyAccess"
6:   description well say is "tesing msaccess connection".
7:   click select and find your .mdb file click ok to select it.
8:   click "advanced" and make sure login name and password are blank.
9:   close advanced.
10:  close microsoft access setup dialog
11:  close the  Data Source Administrator.



delphi:

1:  start or restart delphi if its already running.
2:  start a new project
3:  drop a ttable,tdbgrid,tdatasource,tdatabase on form.

    in object inspector:

4:  datasource1 dataset : table1
5:  dbgrid datasource   : datasource1
6:  database1 aliasname : MyAccess  
7:  database1 databasename : MyAccessDB //a free given name
8:  database1 loginprompt : false
9:  table1 databasename : MyAccessDB  //is selectable
10: table1 tablename : select a table
11: database1 connected : true
12: table1 active : true

let us know how you get on.
i dont suppose you want components for it..
(diamond access are quite good i can give a link if your interested -shareware but cheapish)
0
 

Author Comment

by:monitorwa
ID: 2816263
Thanks "inthe" unfortunately it didnt work -at the stage when I try to set the table1 table name I get a message "your application is not enabled for use with this driver Alias: MyAccessDB" - I found I get the same message when trying to connect as well?
I tried it on another PC here and got exactly the same result! -you dont think it has anything to do with the fact that both of these PC's are using office2000?
0
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2817375
maybe my fault not reading your delphi version correct,well i am also using on office 2000 but i use that method in d5 and d4 (cannot remember if used in d3)but i used to always use "diamond access" and cannot remember why(it is very possible because of these reasons).
see: www.islamov.com
i dod some searching and all i find is links to these components or one suggestion to make sure you have latest odbc drivers(come with latest bde).
sorry if not a help.
cheers Barry
 


0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 1

Expert Comment

by:xsoft
ID: 2819303
I am not sure if it is possible to connect to access 2000 with D3 when using the BDE as I don't use the BDE.
I would recommend to connect to access databases via DAO or ADO.
If you don't want to use third party components then you can easily import the typelibraries for either DAO or ADO and use their objects directly.
This is quite easy and you will find the documentation in the helpfiles from microsoft.
If you need to use databound controls in your app or want to use something like TTable, TQuery etc. then I would recommend the GM Components for ADO/DAO.
You'll find them at
http://www.gm-software.de

HTH,

Thomas
0
 

Author Comment

by:monitorwa
ID: 2848166
Comment accepted as answer
0
 

Author Comment

by:monitorwa
ID: 2848167
Thanks Barry, the diamond worked fine, I would still like to nut out the native access sometime though but for $50 or so for diamond that will certainly do for now.

TA

DAVE
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question