eHow launches Android app: Get the best of eHow on the go.

About

Microsoft Access Validation Tutorial

Contributor
By Steve Tuffill
eHow Contributing Writer
(0 Ratings)

Microsoft Access validation input to a database means that the data entered will be tailored exactly to the database. If an incorrect format is input, a message can be created on the screen stating that the data is wrong and suggesting the correct data input for that field.

    Setting Up Validation

  1. Create an address book with names and addresses that are correctly input into your database. Use the ZIP code (the five-digit ZIP + 4 format) portion of the address. In design view, the table will show the fields and the various attributes. All fields can be text, but to ensure data integrity, set the ZIP code field to 10 characters. Next, under Input Mask, type "00000\-9999;;_" This ensures the first five digits go in the first five positions and, if a plus four ZIP is included, it will take its place at the end. If a letter of the alphabet is attempted in that field, it will simply not take it. For other situations, the caption can be made to put up a message informing the database user that it is the wrong type of input. For example, a field might be a telephone number. If alpha letters are input, it will suggest that only numbers from 0 and 9 can be input there. This also has value in that it will ensure that the correct data is input into each table, so the data will not need to be cleaned up later on.
  2. Other Validation Tips

  3. Sometimes a field can be too long or too short. Under certain circumstances, it is imperative to limit it to a specific length. Also, a validation field like this can be useful for creating code blocks, where the field length is tightly controlled. The following validation mask will achieve a field of exactly eight numerals, no more and no less: Is Null or Like "????????" (The question mark means anything letter or numeral goes in there. If it had to be numbers, the hash sign "#" would be used.)
  4. More Uses for Validation in MS Access

  5. Create neat fields with the correct data by using validation in the input mask. Other examples of validated input are dates, times, social security, phone numbers and passwords which have a starred display to avoid the password being read while it is being entered. Although there are some limitations. However, it is important to note that the input mask in MS Access only works with Text or Date/Time field types.
Subscribe

Post a Comment

Post a Comment Post this comment to my Facebook Profile

Related Ads

Get Free Computers Newsletters

Copyright © 1999-2010 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics