Moving sql to access

J

Jack

Hi,
I have a view in sql server as follows:
SELECT A.ApprovalID, A.CaseID,
L.[Name],
Q.[Name],
P.[Name],
D.[Name]
FROM dbo.Approval A
JOIN dbo.Employee L
ON A.TeamLeaderID = L.EmployeeID
JOIN dbo.Employee Q
ON A.QualityManagerID = Q.EmployeeID
JOIN dbo.Employee P
ON A.ProductionManagerID = P.EmployeeID
JOIN dbo.Employee D
ON A.DirectorID = D.EmployeeID;

I need to create a query in Access bases on this view. I tried pasting the
code in Access sql but it does not work. What changes are necessary to have
this view moved to Access query. I appreciate any help. Thanks.
 
S

Stefan Hoffmann

hi Jack,
I need to create a query in Access bases on this view. I tried pasting the
code in Access sql but it does not work. What changes are necessary to have
this view moved to Access query. I appreciate any help. Thanks.
Just link the view into your .mdb.

Otherwise use the query designer to recreate the view. The basic problem
is that Jet SQL requires parentheses for ordering the joined tables.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top