ACC: #Error When Control Name Used in ControlSource Expression (90860)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q90860 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
A field returns a "#Error" error message when the ControlSource property
(bound field) contains the Name property in an expression. However, in an
unbound text box, the same expression generates the expected value rather
than "#Error."
NOTE: The Name property is called the ControlName property in Microsoft
Access versions 1.0 and 1.1.
CAUSE
There is a circular dependency in either a form or a report. Control names
take precedence over field names when binding. Microsoft Access does not
provide a more descriptive error for circular references.
RESOLUTION
If you need to reference the Name property in an expression, use an unbound
text box. Otherwise, reconstruct the ControlSource property expression so
that it does not reference the Name property.
Another alternative is to change the name on the form.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kberrmsg kbprb kbusage KB90860 |
---|
|