What are field properties in a database?
A field’s data type is the most important property because it determines what kind of data the field can store in MS Access tables. Show
Every MS Access table is made up of fields. The field properties describe the characteristics and behavior of data added to that field. A field’s data type is the most important property as it determines the type of data the field can store. A field’s data type determines other field qualities like the following:
The table below shows the formats available for each data type FormatDisplayShort TextShort, alphanumeric values, such as a first name or a house numberNumber, Large NumberNumeric values such as marks in a subjectCurrencyMonetary values like course feesYes/NoYes and No or true and falseDate/Time, Date/Time ExtendedDate/Time: Date and time values for the years 100 through 9999.Date/Time Extended: Date and time values for the years 1 through 9999Calculated FieldResults of a calculation. The calculation always refers to other fields in the same table. We use the Expression Builder to create the calculation.AttachmentAttached photographs, spreadsheet files, word documents, charts, and other types of supported files to the records in our database. This is similar to e-mail messages attachments.HyperlinkText or combinations of text and numbers used as a hyperlink address for emails and websitesLong TextUsed to display Rich Text, which includes formatting like bold and underline and it can store up to about a gigabyte of text.LookupDisplays either a list of values that is retrieved from a table or query, or a set of values that we specify when we create the field as in course names. When the Lookup Wizard starts we can create a Lookup field. The data type of a Lookup field is either Text or Number, depending on the choices that we make as we use the wizard. The other details connected with the data types are explained in the video. The ‘Append Only’ property in a Hyperlink determines whether to track field value changes. There are two settings: Yes: Tracks changes. To view the field value history, right-click the field in datasheet view, and then click Show column history. A property for a numeric field might be the number of decimal places displayed or the maximum number of characters a field can hold. See figure, which illustrates the comparison. A comparison of a car's with a field's properties.You need to be in Design view in order to view and change a table's field properties.Just about every object in Access every heading on a report, every label on a form, every field in a table has its own set of properties that you can view and change. This property concept might seem a little confusing at first, but it's something you have to learn if you want to become proficient at using Microsoft Access. Because you can almost always change object properties, you can also sometimes think of an object's properties as its settings. Over half of this tutorial is devoted to working with a table's field properties, so consider this your introduction to field properties and to properties in general.
Table describes all the field properties. Don't worry if some of them seem confusing you will get a lot of practice adjusting each and every one of these properties in this tutorial. It's important to note that certain types of fields have their own sets of properties. For example, number fields have a Decimal Places property while text fields do not. Important Field PropertiesField SizeText fields: The maximum number of characters (up to 255) that can be entered in the field. The default setting is 50. Number / Currency fields: Stores the number as a Byte, Integer, Long Integer, Single, Double, or Replication ID. The default setting is Long Integer. FormatHow the data in the field will be displayed on the screen. Input MaskCreates a format or pattern in which data must be entered. Decimal PlacesThe number of decimal places in Number and Currency fields. CaptionA label for the field that will appear on forms. If you don't enter a caption, Access will use the field name as the caption. Default ValueA value that Access enters automatically in the field for new records. Validation RuleAn expression that limits the values that can be entered in the field. Validation TextThe error message that appears when an incorrect or restricted value is entered in a field with a validation rule. RequiredSpecify whether or not a value must be entered in the field. The default is No. Allow Zero LengthSpecify whether or not the field allows zero-length text strings (a string containing no characters). Zero-length text strings are useful if you must enter data in a field, but no data exists. For example, if a Social Security field requires data, but you don't know the social security number, you would enter a zero-length text string in the field. To enter a zero-length text string type "" in the cell. The cell will appear empty. The default is No. IndexedSpecify whether or not you want to index the field to speed up searches and sorts performed on the field. The default is No. To display a table in design view:
or...
|