What is a dataModule?
A dataModule is a dBASE Plus class for centralized handling of data access objects (Query, Database, StoredProc, and Session). A dataModule enables you to
Place all your data access components in a single container instead of duplicating them on each application form.
Design queries once for use with many forms and reports instead of recreating them separately for each one.
Create business rules—using component events, and additional methods you add to the source code for a dataModule—that can be shared across an entire application.
Separate business logic and data access from user interface code for easier maintenance.
After you’ve set up data access objects in a dataModule, it’s easy to maintain them (change links to changing databases, for example).