Skip to content
Advertisement

The Microsoft Access Database Engine Does not Recognize ‘[tbl_AssignmentDetails].[Position Name]’ as a valid field name or expression

I have created the below crosstab query off a find duplicates query. When I run it, I get the error message:

“The Microsoft Access database engine does not recognize ‘[tbl_AssignmentDetails].[Position Name]’ as a valid field name or expression.”

Any clues?

Advertisement

Answer

.. FROM [tbl_AssignmentDetails] As Tmp GROUP BY [Full Name],[Position Name] HAVING .. [Position Name] = [tbl_AssignmentDetails].[Position Name]))…

Which table is [Position Name] from? The table in the main query, or the table in the subquery? And which [tbl_AssignmentDetails].[Position Name] is it equal too?

It’s ambiguous, and when it’s ambiguous the query optimizer becomes confused. Use an alias for one of the tables.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement