I am trying to connect to a mdb (access 2000) My App has 1 main screen with 4 buttons. each button will open a new form.
I need access to this database on all 4 of the sub forms, Do i have to add a ADOConnection to each form? Can i make the connection on the main form and thats it? OR is there even a better way?
Put the TADOConnection on a Data Module and USE the Data Module in all the forms to share the connection.
Open your project:
File -> New -> Other
Delphi Projects -> Delphi Files
Data Module
Then:
Project -> Options
Forms
Move the Data Module to the top of the Auto-create forms