Question : Need MS Access flavor SQL statement

I have a SQL statement that I wrote using SQL Management Studio.  I am looking for an MS Access flavor implementation of same.

Here is the statement:

select
      Doc.DocID,
      State.StateCode,
      DocState.DocStateID
from Doc
cross join State
left join DocState on
      Doc.DocID = DocState.DocID
      and State.StateCode = DocState.StateCode


There are 3 tables involved.  

Doc - A table containing a list of documents whose primary key is DocID
State - A table containing a list of states (such as NY, NJ, CT) whose primary key is StateCode
DocState - A junction table containg a list of valid states for a document.  The primary key is DocID, StateCode

Answer : Need MS Access flavor SQL statement

Ok how about using the cartesian join in a sub select and then left joining the result to the DocState
Cheers, Andrew
1:
2:
3:
4:
5:
6:
7:
SELECT D.*
     , DocState.DocStateID
     , IIF(IsNull(DocState.DocStateID),"Exists", "Does Not Exist")
FROM (SELECT Doc.DocID
           , State.StateCode
      FROM State, Doc
     ) D LEFT OUTER JOIN DocState DS ON D.DocID = DS.DocID AND D.StateID = DS.StateID
Random Solutions  
 
programming4us programming4us