• Homework
  • Thirds
  • Upper Thirds
  • Fourth
  • Divisions
    • ICT
    • Computer Science
  • Fifth
  • Lower Sixth
  • Upper Sixth
    • Upper Sixth Theory
  • Blog
  • Careers
  • Unity
  • Networking

Delphi and Access Walkthrough

Part four, Connecting the other controls

Congratulations, you've done the tricky bit.  Your database file is now connected to Delphi.  We just need to get the table and field information so that we can read it.

Setting up the table adaptor

You've already connected the database with the connection object.  The table object will have found the connection object.

Now you need to tell it which table to use.

We're using the table control as a short-term measure to get access to the fields that you need.
Picture
Once you've selected a table ...

Double click on the table control itself.
Add the fields to the table selector by double clicking on the table control, right clicking on the resulting pop-up and choosing 'Add fields'.

Click OK to add them all.

Now you can drag these fields into your form.
Picture
Picture

Part five:  Adding a navigator and writing some code

Powered by Create your own unique website with customizable templates.