Solved

connect betwen access and delphi

Posted on 2001-06-23
4
339 Views
Last Modified: 2006-11-17
please how can i connect between MS-access and execuatable progamming in delphi
thank you
0
Comment
Question by:rehabomer
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
jsweby earned 50 total points
ID: 6222953
For a solution straight out of the box, Delphi comes with a database connectivity engine called the BDE (Borland Database Engine) which allows you to connect a database to your application. Version 3 of Delphi onwards provide native MS Access support for Delphi using the BDE, the only downside is that you have to install the BDE on the user's machines or this to work. However, the special Delphi version of InstallShield Express that comes with Delphi will do all of this for you. Delphi 5 Enterprise Edition comes with an even better solution called ADOExpress.

The alternative to this is to buy a third-party component known as a BDE-replacement component that also allows you to connect databases to your program, but they are usually database-specific, whereas the BDE provides support for lots of different databases, such as Access, Paradox, DBase, etc.

For a couple of years we used a component called Titan Access for Delphi which provides the connection between an Access database and a Delphi program, without having to install the BDE or anything other database connectivity on the user's machine because it all compiles into your program. Go to www.reggatta.com and select Titan Access for Delphi for the version of Delphi that you have.

Now, we need to connect to other database types e.g. Microsoft SQL Server and so have dropped Titan Access in favour of the ODBC and use ODBCExpress (www.odbcexpress.com) which allows you connect to a variety of different databases, still all compiled into your EXE. But for ease of use, stick with Titan Access for Delphi unless you know you'll want to move to another database reasonably soon.

Hope this helps,
J.
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6232197
Did this help, rehabomer? What version of Delphi and what version of MS Access are you trying to connect together. Versions of Delphi 3 onwards are OK for Access 97, I think you might need Delphi 5 (maybe 4 and a BDE update) for Access 2000 support.

J.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7257301

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - Answered by: jsweby  
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Expert Comment

by:Jgould
ID: 7282247
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now