ACC: "Invalid Bracketing of Name <Expression Object>" ErrorID: Q132184
|
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:
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.
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:
Forms![FormName]![ControlName].property
Macro Name Action
------------------------------
Print Label Macro OpenReport
Print Label Macro Actions
--------------------------------------------------------------
OpenReport
Report Name: Customer Labels ( or Customer Mailing Labels in
Microsoft Access 2.0)
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 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
Version : 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999