ACC2000: "Invalid Bracketing of Name <Expression Object>" ErrorID: Q208810
|
Moderate: 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:
Invalid bracketing of name '[Forms]![FormName]![Control.Name]'
The Where Condition argument references a form control containing a dot (.) or an exclamation point (!) in its name.
Rename the control and omit the dot or the exclamation point.
The 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:
If you include a dot or an exclamation point in a field name or control name, then Access may not be able to interpret the reference when you use it in an expression or in a Where Condition argument.Forms![FormName]![ControlName].property
Macro Name Action
------------------------------
Print Label Macro OpenReport
Print Label Macro Actions
--------------------------------------------------------------
OpenReport
Report Name: Customer Labels
View: Print Preview
Where Condition: [CustomerID]=Forms![Customers2]![Cust.ID]
Command Button:
Name: Button1
Caption: Print Label
OnClick: Print Label Macro
For more information about the exclamation point and dot operators, click Microsoft Access Help on the
Help menu, type "use the exclamation point and dot operators in expressions" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: prb
Keywords : kberrmsg kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999