A family of Microsoft relational database management systems designed for ease of use.
It may be your use of single quotes around the table names. Try using square brackets instead. For example:
[MAIN DATABASE] and [REQ Lookup]
Hope that helps...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to do this query in access but I am getting this error "syntax error in query. incomplete query clause". Should I be rewriting it as a join statement instead?
select
'MAIN DATABASE'.CoupaREQ,
'MAIN DATABASE'.OldServiceTag,
'REQ Lookup'.'Old Tag Serial', 'REQ Lookup'.'Coupa Req',
'REQ lookup'.'Req From Tracker'
from
'MAIN DATABASE', 'REQ Lookup'
where
'MAIN DATABASE'.ID = 'REQ Lookup'.ID ;
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
It may be your use of single quotes around the table names. Try using square brackets instead. For example:
[MAIN DATABASE] and [REQ Lookup]
Hope that helps...
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Hi. Glad to hear you got it sorted out. It's highly recommended to avoid using spaces in table names to prevent unexpected problems like this. Good luck with your project.
Yes, very true... what I did was I went back in query, used designer and made a simple query to see how access laid the querys out, then moved on till i got what I wanted, I was able to see how access wanted it formatted. It was definitely a lot of the issue of needing brackets.
theDBGuy is right.
One way to learn the SQL syntax is to first design a query in the Designer, then switch to SQL view. You will see the use of square brackets.