ACC97: "Can't Represent the Join Expression" in Query DesignID: Q161861
|
Moderate: Requires basic macro, coding, and interoperability skills.
After you create a query with the Simple Query Wizard in Microsoft Access
97, you may receive the following error message if you try to open the
query in Design view:
Microsoft Access can't represent the join expression
([<TableName>].[<FieldName>] = [<TableName>].[<FieldName>])AND
([<TableName>].[<FieldName>] = [<TableName>].[<FieldName>]) in Design view.
The Simple Query Wizard adds an extra set of parentheses in the join
expression of the SQL Statement that it creates for the query.
The error occurs if your query meets both of the following conditions:
There are two methods you can use to work around this problem:
ON ([tblOne].[Key3] =[tblTwo].[Key3]) AND (([tblOne].[Key1]
=[tblTwo].[Key1]) AND ([tblOne].[Key2] =[tblTwo].[Key2]));
ON ([tblOne].[Key3] =[tblTwo].[Key3]) AND ([tblOne].[Key1]
=[tblTwo].[Key1]) AND ([tblOne].[Key2] =[tblTwo].[Key2]);
Microsoft has confirmed this to be a problem in Microsoft Access 97.
Table: tblOne
--------------------
Field Name: Key1
Data Type: Text
Field Name: Key2
Data Type: Text
Field Name: Key3
Data Type: Text
Field Name: Field1
Data Type: Number
Table: tblTwo
------------------------
Field Name: ID
Data Type: AutoNumber
Field Name: Key1
Data Type: Text
Field Name: Key2
Data Type: Text
Field Name: Key3
Data Type: Text
Field Name: Field2
Data Type Text
Table/Query: tblOne Related Table/Query: tblTwo
-------------------------------------------------
Key1 Key1
Key2 Key2
Key3 Key3
For more information about the Simple Query Wizard, search the Help Index
for "Simple Query Wizard," or ask the Microsoft Access 97 Office Assistant.
For more information about creating relationships between tables, search
the Help Index for "relationships, overview," or ask the Microsoft Access
97 Office Assistant.
Keywords : kberrmsg QryJoin WzOthr
Version : 97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 29, 1999