- In the Database window, click Forms
- To create a copy of the form, right-click the Persons form and click
Save As (if using MS Access 97, it is Save As/Export)
- (If using MS Access 97, click the Within The Current Database As
radio button)
Replace the name of the form with NewPerson and click OK
- In the Database window, right-click the NewPerson form and
click Design View
- Double-click the button at the intersection of both rulers
to display the Properties window.
In the Properties window, click the All tab and change the following properties
Caption: New Person
Data Entry: Yes
Record Selectors: No
Navigation Buttons: No
- Close the Properties window
- Right-click anywhere in the form and click Form Header/Footer
- Now we will allow the user to be able to undo a record
On the Toolbox, make sure the Control button is down
and click the Command Button
- On the form click in the Form Footer section
- When the Command Button Wizard starts, in the first page, in the
Categories list, click Record Operations
- In the Actions list, click Undo Record
- Click Next
- Change the Undo Record text with Reset and click Next
- Change the name of the button to cmdReset and click Finish
- Test and close the form
|