Adding the Delete row option to a Data Form
- Open the Data Form.
- Click to highlight the DB Table.
-
Add one column to the DBTable by increasing the Columns value by
one.
In this example, the DBTable is increased from four columns to five:
-
From the Controls tab of the Toolbox, add a Label field control to
the first row of the new column.
- Change the Caption name of the new Label control so that the name describes the purpose of the column.
- Change the Name of the new Label control so that the name describes the label control’s purpose.
-
Make any other necessary changes to the new Label control.
In this example, a Label with the caption “Delete Record” is added to first row of the new column within the DBTable. Other changes to the Label control include:
- Width: 256
- Background: Purple
- Font: 12, Bold
-
From the Data tab of the Toolbox, add a Delete Check Box control
to the second row of the new column within the DBTable.
-
To obtain a cleaner effect, the Delete row caption was deleted,
leaving just the check box.
- Verify that the Delete Check Box control points to the appropriate Datasource.
- Change the Delete Check Box Name so that the name appropriately describes the control’s purpose.
- Make any other necessary changes to the form.
- Save the completed form.