Microsoft Access problems

Arkillo

The best of both worlds
Joined
Jun 9, 2003
Messages
10,653
Reaction score
6
Website
myspace.com
Validation Rule


A validate rule is a condition that the value entered in a field must meet in order to be valid. This rule is usually created as an expression and entered in the Validation Rule property of a field when the table or the form is opened in Design View.

Practical Learning: Setting Validation Rules


The Employees table of the Rockville Techno database should still be opened with the Employees table in Design View.
In the upper section of the table, click BillingRate
In the lower section, click Validation Rule, type 15.00 and press Enter
Save the table

Validation Text


When the condition in the Validation Rule field is not respected, you can display a message box to let the user know. The message for that text box can be created as a string in the Validation Text field.

Practical Learning: Creating a Validation Text


In the upper section of the table, click BillingRate
In the lower section, type:
The minimum billing rate or salary of this company is $15.00
Save and close the table

Value Required for a Field


If you think that there must be an entry for a particular field for each record, you can let Microsoft Access know. The Required property is Boolean value. If you set it to Yes, the user would not be able to move to the next record until he has entered a valid data in the field. Its default value is No.

Practical Learning: Specifying Required Fields


Open the Clients table in Datasheet View and, after viewing it, switch it to Design View
In the upper section of the table, click ContactLastName
In the lower section, double-click Required to change its value to Yes
In the upper section of the table, click PhoneNumber
In the lower section, double-click Required to change its value to Yes
Save and close the table





From http://www.functionx.com/access/lesson22.htm
 

NewPosts

New threads

Top