Missing operator in query expression là lỗi access 2010
Hi all, I get the error when i run my query and i have check that i do not miss out any open or close bracket. How can i fix this? Code:
JHBHave been here a while
This one is the problem FabricPOqry* you're missing the dot between the table name and the star! Correct is FabricPOqry.* luzzRegistered User.
Thanks! After i have added in the . and run again. It prompt me another error"Syntax error (missing operator) in query expression". luzzRegistered User.
Thanks! I have fixed the error. However, when i run the query, no records is shown on the query
That query has to have a LOT of things going for it in order to return any records. FIRST, you need to find eight of your FabricPOqry object (whatever it is) with nulls. But SECOND, you need to find records where eight OTHER fields exactly match some record in the MainTable object (which I assume is a table). That is 16 exacting criteria. In order to partly debug this, I might run the query without the WHERE clause to see if your problem is an over-restrictive JOIN. The WHERE filters will return nothing in either of two cases, you see: No records matched the WHERE clause or no records were found for the eight-way JOIN. If you do this without the WHERE clause and STILL get nothing, your problem is that the JOIN over-specifies the selection criteria. luzzRegistered User.
FIRST, you need to find eight of your FabricPOqry object (whatever it is) with nulls. But SECOND, you need to find records where eight OTHER fields exactly match some record in the MainTable object (which I assume is a table). That is 16 exacting criteria. In order to partly debug this, I might run the query without the WHERE clause to see if your problem is an over-restrictive JOIN. The WHERE filters will return nothing in either of two cases, you see: No records matched the WHERE clause or no records were found for the eight-way JOIN. If you do this without the WHERE clause and STILL get nothing, your problem is that the JOIN over-specifies the selection criteria.The query returned me results after i remove the where clause. How do i move on from here?
Try adding them back one at a time so you can see which criterion or criteria cause your issue Also consider whether any of these could be done using OR rather than AND Last edited: Dec 6, 2017 luzzRegistered User.
Thank you! I have solved it!
For the benefit of others who may view this thread in future, please explain what the solution was luzzRegistered User.
The purpose of me doing this query is to build an unmatched query based on multiple fields. After researching, i found out that i can actually use the unmatched wizard in Access to help me do that. If i want to have other join criteria i can simply type in my own criteria in the unmatched query SQL. |