ACC2000: Invalid ControlSource Property Values Are Erased in Data Access Pages

ID: Q225917


The information in this article applies to:

Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).


SYMPTOMS

When you type an invalid value in the ControlSource property of a control on a data access page, Microsoft Access returns one of the following error messages and erases the value:

Invalid property value.
-or-
The expression "expression" is not valid.
-or-
The setting you entered isn't valid for this property.


CAUSE

Because the ControlSource property value is invalid, Access erases the invalid entry so that you can re-enter a valid value.


RESOLUTION

Type a valid value in the ControlSource property.

For more information about valid ControlSource property values, click Microsoft Access Help on the Help menu, type "ControlSource Property" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb.


  2. In the Database Window, click Pages under Objects, and then click New.


  3. In the New Data Access Page dialog box, click Design View, and then click OK.


  4. Add a text box to the unbound section of the page.


  5. If the Properties window is not visible, on the View menu, click Properties.


  6. On the Data tab, type =nothing for the ControlSource property. Press ENTER.


  7. When the error message appears, click OK. Note that the text that you typed in the ControlSource property is gone.


Additional query words: DAP prb empty erased cleared control source


Keywords          : kbdta AccDAP DAPProb 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: July 8, 1999