To use a dataModule in a form or report, do one of the following:

Add a DataModRef object from the Component palette and link it to the desired dataModule by setting the DataModRef’s filename property to the path and filename of the dataModule.

Drag the dataModule file from the Navigator or Project Explorer to a form or report design surface. This adds a dataModule object to the form.

The properties, event handlers, and methods you set for components in a dataModule apply consistently to all forms and reports that use the module.