How can I access my Data.mdb database with Delphi?

Hi, im a newbie in programming and I was wondering how can I use a dbgrid for a .mdb Microsoft Access database I created (called Data.mdb). I have no idea what components to use, so I would be greatfull if someone could help me out.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

For Delphi 7, you could use ADO components.
Drop an ADOConnection onto the form.
Drop an ADOTable onto the form.

You need to set the ConnectionString property for the ADOConnection, click the ... button, then click build.. For provider you could select Microsoft Jet.
Then browse to select your mdb on the connection tab.
You could also look at the advanced for permissions etc.

You can now set the Connection property of the ADOTable to the ADOConnection.
Then if you click on the TableName property of the ADOTable you should see a listing of the available tables/querys in your mdb. Select the one needed.

To connect this to your DBGrid you need to drop a DataSource component onto the form. Then set its dataset property to your ADOTable.
To connect to the grid set its datasource property to your Datasource component.

Thats it. :)

Obviously in code you would need to Open/Connect the ADOConnection. i.e  ADOConnection1.Connected := True ;
Once connected you can then open your ADOTable.  ADOTable.Open ;

This should be enough to get you started.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RickJ given a nice explanation above
Also have a look into this. This is a nice tutorial step by step

fb132Author Commented:
Unfortunately I have Delphi 6, so my question is how do I get this ADO thing?
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

What version of Delphi 6?
I was sure 6 Professional had an ADO tab on the component palette.
fb132Author Commented:
Standard, it has simply the regular components minus the ADO
I think you have a couple of options.
I am sure that with earlier versions of delphi you could import a type library (An MS dll) that gave you base level ADO access.
Or you could use some 3rd party components. There are free ones.
I have to go now. (Very late here)
Give me till the morning to dig up some exact details for you...??
Or someone else may jump in and help.
I'm afraid you cannot use ADO or any other Database components with the standard edition of Delphi... no matter what version you are using.
This is the whole point of Standard edition.... NO database access.
Most of the components I've used or seen require that you have at least the professional version installed

Thanks calinutz.
I have never used anything less than professional version.
Do you know (and I am sure fb132 would like to know) are there any data components you can get for standard? I notice you said "most components" not all.
Or is it a matter of having to upgrade?
I had a quick search and found nothing for standard version.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.