Requiring an Entry


graphics/04inf13.jpg

graphics/one_icon.jpg

After you've opened the table you want to change in Design view, click in the field for which you want to require an entry (in this example, the Product Name field).

graphics/two_icon.jpg

In the property sheet, click in the Required field. A down arrow appears to the right of the field.

graphics/three_icon.jpg

Click the down arrow and select Yes from the list that appears.

graphics/four_icon.jpg

This field now requires an entry. Click the Save button on the Standard toolbar in the main Access window to save changes to the table.

INTRODUCTION

For some fields, you may want to make sure that data is entered. For example, suppose that you have a product database table and that all products must have an ID. You can make the field that contains this value a required field so that the user is prompted to enter a value.

TIP

Handling Error Messages

Access lets you move out of the required field without typing an entry, but when you move out of the record containing the required field, you'll see an error message that names the required field. Click OK , complete the required field, and add the record.



Easy Microsoft Office Access 2003
Easy Microsoft Office Access 2003
ISBN: 789729598
EAN: N/A
Year: 2003
Pages: 174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net