ACC2000: Pressing CTRL+ALT+SPACEBAR Enters the Control's Default Value (209801)
The information in this article applies to:
This article was previously published under Q209801 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you create a form based on a table that has one or more fields
defined with the DefaultValue property, pressing CTRL+ALT+SPACEBAR inserts the control's default value defined in the form rather than the field's default value defined in the table. If no value has been defined for the control's DefaultValue property, CTRL+ALT+SPACEBAR has no effect.
CAUSE
This behavior occurs because if you set the DefaultValue property for a form control that is bound to a field that also has a DefaultValue property setting defined in the table, the control setting overrides the table setting. When you enter new records in Form view, any control that has a DefaultValue property defined is displayed with the control's default value. If you decide that you want to have the default value that was defined in the table, you have to type it in. You can enter the default value by pressing CTRL+ALT+SPACEBAR.
When you are entering data in the table's Datasheet view, pressing
CTRL+ALT+SPACEBAR inserts the field's default value, as defined in
the table.
REFERENCESFor more information about the DefaultValue property, click Microsoft Access Help on the Help menu, type defaultvalue property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb kbusage KB209801 |
---|
|