ACC2000: Can't Change Combo Box Value If ControlSource AutoNumberID: Q209681
|
Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).
If the ControlSource property of a combo box is set to a field that
has an AutoNumber data type or that is automatically populated, you receive the following message on the status bar when you try to change the value in the combo box:
Control can't be edited; it's bound to AutoNumber field <fieldname>.
The control source of a combo box is a table field where Microsoft Access writes your combo box selection. Modifications to an AutoNumber or an automatically populating field are not allowed. Therefore, if the ControlSource property of a combo box is set to one of these fields, Microsoft Access cannot update the value in the field; therefore, you cannot change the combo box value. Microsoft Access gives you the message to tell you why it cannot update the combo box control.
Either change the data type of the field in the ControlSource property of the combo box, or set the ControlSource property to a field that does not have an AutoNumber or an automatically populating data type.
Table: MyTest
------------------------
Field Name: MyAutoNumber
Data Type: AutoNumber
Field Name: MyData
Data Type: Number
Field Name: MyBucket
Date Type: Number
Combo Box:
ControlSource: MyAutoNumber
RowSource: MyTest
For more information about combo boxes, click Microsoft Access Help on the
Help menu, type "Combo boxes: What they are and how they work" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: prb
Keywords : kberrmsg kbusage kbdta FmsCmbo
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999