A
ana9 via AccessMonster.com
I have the following query:
SELECT *
FROM { oj { oj [ACCT MGR QTR GOALS] LEFT OUTER JOIN
[ACCOUNT MANAGER] ON [ACCT MGR QTR GOALS].
ACCOUNTMANAGER = [ACCOUNT MANAGER].[AM INITIALS]} RIGHT OUTER JOIN
[SALES ORDER] ON [ACCOUNT MANAGER].[AM INITIALS] =
[SALES ORDER].ACCOUNTMANAGER }
WHERE (DATEPART('yyyy', [SALES ORDER].INVOICEDATE) = ?)
GROUP BY [ACCT MGR QTR GOALS].[Q1-2007], [ACCT MGR QTR GOALS].[Q2-2007],
[ACCT MGR QTR GOALS].[Q3-2007], [ACCT MGR QTR GOALS].[Q4-2007],
[ACCOUNT MANAGER].[AM INITIALS], [ACCOUNT MANAGER],
[ACCOUNT MANAGER], [SALES ORDER].ACCOUNTMANAGER
ORDER BY [SALES ORDER].ACCOUNTMANAGER
I am designing this in Visual Studio and I want to join the tables as stated
above, but VS keeps throwing in the { oj ...} and I get an error. If I
remove the { oj ...} I get an error as well. How am I supposed to join these
tables in this manner?
SELECT *
FROM { oj { oj [ACCT MGR QTR GOALS] LEFT OUTER JOIN
[ACCOUNT MANAGER] ON [ACCT MGR QTR GOALS].
ACCOUNTMANAGER = [ACCOUNT MANAGER].[AM INITIALS]} RIGHT OUTER JOIN
[SALES ORDER] ON [ACCOUNT MANAGER].[AM INITIALS] =
[SALES ORDER].ACCOUNTMANAGER }
WHERE (DATEPART('yyyy', [SALES ORDER].INVOICEDATE) = ?)
GROUP BY [ACCT MGR QTR GOALS].[Q1-2007], [ACCT MGR QTR GOALS].[Q2-2007],
[ACCT MGR QTR GOALS].[Q3-2007], [ACCT MGR QTR GOALS].[Q4-2007],
[ACCOUNT MANAGER].[AM INITIALS], [ACCOUNT MANAGER],
[ACCOUNT MANAGER], [SALES ORDER].ACCOUNTMANAGER
ORDER BY [SALES ORDER].ACCOUNTMANAGER
I am designing this in Visual Studio and I want to join the tables as stated
above, but VS keeps throwing in the { oj ...} and I get an error. If I
remove the { oj ...} I get an error as well. How am I supposed to join these
tables in this manner?