Applies To Check Box control, Combo Box control, List Box control, Option Button control, Option Group control, Table field, Text Box control, Toggle Button control.
Description
You can use the DefaultValue property to specify a value that is automatically entered in a field when a new record is created. For example, in an Addresses table you can set the default value for the City field to New York. When users add a record to the table, they can either accept this value or enter the name of a different city.
NotesSetting
The DefaultValue property specifies text or an expression that's automatically entered in a control or field when a new record is created. For example, if you set the DefaultValue property for a text box control to =Now(), the control displays the current date and time. The maximum length for a DefaultValue property setting is 255 characters.
For a control, you can set this property in the control's property sheet. For a field, you can set this property in table Design view (in the Field Properties section), in a macro, or by using Visual Basic. In Visual Basic, use a string expression to set the value of this property. For example, the following sets the DefaultValue property for a text box control named PaymentMethod to "Cash":Forms!frmInvoice!PaymentMethod.DefaultValue = """Cash"""=Forms!frmInvoice!txtShipToSee Also AllowZeroLength property, DefaultValue property ("DAO Language Reference"), Required property, Value property.