Default Value
Microsoft Access
Set a default value for a lookup list
-
Open the table that provides the source data for your lookup field in Datasheet view.
-
Note the key value that is associated with the item that you want to make the default value.
Note: By default, Access hides primary and foreign key fields. If you don't see the key field, right-click any cell in the header row of the table, click Unhide Columns, and in the Unhide Columns dialog box, select your key field and click Close.
-
In the Navigation Pane, right-click the table that contains your lookup field, and then click Design View.
-
Select the lookup field, and on the General tab, in the Default Value property box, type the key value that you noted in steps 1 and 2. This is the value that corresponds to the list item that you want to make the default.
For example, suppose you have 10 suppliers, and you want the name of your most-used supplier to appear by default. To do so, you locate the key value that uniquely identifies the supplier, and you enter that key value in the Default Value property box of the foreign key field.
-
Save your changes, switch to Datasheet view, and enter a new record. Your default value appears in your lookup field when you add the record.
Examples of default values
The following table lists and describes some default values. You can adapt these examples for use with your own data.
Expression |
Default field value |
1 |
1 |
"MT" |
MT |
"New York, N.Y." |
New York, N.Y. (note that you must enclose the value in quotes if it includes punctuation) |
"" |
A Zero-length string |
Date( ) |
Today's date |
=Yes |
"Yes" is displayed in the local language of the computer |