Query97: "Invalid Bracketing" Error Adding Field to MS Query (173043)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Query
This article was previously published under Q173043 SYMPTOMS
In Microsoft Query 97 for Windows, if you attempt to add a field to the
data pane by double-clicking a field in the list of fields, you may receive
the following error message:
Microsoft Query
Invalid bracketing of name '<TableName>.<FieldName>'.
When you click OK, all data and criteria may disappear from Microsoft
Query.
CAUSE
This problem may occur when the field name in the list of fields includes a
period. For example, double-clicking the following field names may cause
the problem to occur:
Customers.CompanyName
Shippers.CompanyName
WORKAROUND
To work around this problem, use the Query Wizard to add such fields to the
data pane. To do this when you create a new query, follow these steps:
- In Microsoft Query 97, click New on the File menu.
- In the Choose Data Source dialog box, click the data source you want
to use. Make sure that the "Use the Query Wizard to create/edit
queries" check box is checked. Then, click OK.
- In the "Query Wizard - Choose Columns" dialog box, click the tables
and columns that you want to include in the query and add them to
the query by clicking the ">" button. When you are done, click Next.
- In the "Query Wizard - Filter Data" dialog box, apply any filters you
want to use. Then, click Next.
- In the "Query Wizard - Sort Order" dialog box, apply any sort order you
want. Then, click Finish.
NOTE: If you are returning external data into Microsoft Excel 97,
click Next. Then, click "View data or edit query in Microsoft Query,"
and click Finish.
It is not possible to add a field with a name that contains a period to an
existing query even if you manually modify the Structured Query Language
(SQL) statement used to create the query.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/25/2001 |
---|
Keywords: | kbbug KB173043 |
---|
|