query problem (missing operator)

tombino79

New member
Local time
Today, 21:38
Joined
May 30, 2007
Messages
2
Hi everyone,

I have a problem with a query.
Just for info, I export some table from SQL to access. The same quary in SQL work fine but when I try in Access come out this error:

------------------------------------------------------------------
Syntax error (missing operator) in query expression 'tbl_Style.FABRICID = tbl_Info.Infoid INNER JOIN tbl_Info AS tbl_Info_1 ON tbl_Info.Parent = tbl_Info_1.Infoid'.
------------------------------------------------------------------

The query:

SELECT tbl_Style.STYLECODE, tbl_Info_1.Infodata AS [Fabric Type]

FROM tbl_Style INNER JOIN

tbl_Info ON tbl_Style.FABRICID = tbl_Info.Infoid INNER JOIN

tbl_Info AS tbl_Info_1 ON tbl_Info.Parent = tbl_Info_1.Infoid


I appreciate your help.

Regards,
Tombino
 
ok I found out now. it was just a missing parenthesis.

Like this work fine:

SELECT tbl_Style.STYLECODE, tbl_Info_1.Infodata AS [Fabric Type]
FROM tbl_Style INNER JOIN (tbl_Info INNER JOIN tbl_Info AS tbl_Info_1 ON tbl_Info.Parent = tbl_Info_1.Infoid) ON tbl_Style.FABRICID = tbl_Info.Infoid

But away In SQL i can write it without.

thanks.

Tom
 

Users who are viewing this thread

Back
Top Bottom