ACC: "Invalid Bracketing of Name <Expression Object>" ErrorLast reviewed: May 21, 1997Article ID: Q132184 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you run an ApplyFilter, OpenForm, or OpenReport action using a macro or custom function with a Where Condition argument, you may receive an error message such as the following:
In Microsoft Access 97: Invalid bracketing of name '[Forms]![FormName]![Control.Name]' In Microsoft Access 2.0 and 7.0: 'Forms![FormName]![Control.Name]' isn't a valid parameter name. CAUSEThe Where Condition argument references a form control containing a dot (.) or an exclamation (!) in its name.
RESOLUTIONRename the control and omit the dot or the exclamation point.
MORE INFORMATIONThe dot (.) and the exclamation point (!) have a special meaning in Microsoft Access. They are identifier operators you use to refer to objects, controls, collections, or properties as follows:
Forms![FormName]![ControlName].propertyIf you include a dot or an exclamation point in a field name or control name, then Microsoft Access may not be able to interpret the reference when you use it in an expression or in a Where Condition argument. To prevent reference problems, use letters, numbers, spaces, or the underscore character (_) when you assign object names; do not use any punctuation mark except the underscore character.
Steps to Reproduce Behavior
REFERENCESFor more information about the dot and exclamation point operators, search for "identifiers and expressions," and then "Use the ! and . (dot) operators in expressions" using the Microsoft Access 97 Help Index. |
Keywords : kberrmsg kbusage SynRef
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |