Step 1. Create a Department Maintenance Form
FRM035 - Maintain a Simple Database Table
In this step you will create a simple form to fetch a record from the Department file.
In the later steps, you will add insert, update and delete operations to this form to build a complete maintenance application.
1. Create a new, basic form named iiiMntDept
(where iii are your course assigned initials). If you are using iii=DEM, your component must be named DEMCOM03.2. Using the
tab, locate the DEPTAB file. Notice that the file has two fields DEPTMENT and DEPTDESC. The file is keyed on DEPTMENT.
3. Drag and drop the DEPTMENT and DEPTDESC fields on to the form.
4. Add a
to the form so that validation error messages can be displayed.5. Add a
to the form.a. Set the button
and to Fetch.b. Create a
event routine for the Fetch button.6. Your form should appear like this: