>Hi John,
>
[quoted text clipped - 23 lines]
>Please let me know if you need more info and thank you for the help!
>Nick
Well, YOU can see the 8th query. I cannot. All I can say is "fix the
error in the eighth query".
If you would like help doing so, please open it in SQL view and post
the SQL text here.
John W. Vinson[MVP]
Nick Monsour - 27 Jul 2006 19:12 GMT
I get an error when I try to view the SQL code:
The SQL statement could not be executed because it contains ambiguous
outer loins. To force one of the joins to be performed first, create a
separate query that performs the first join and then include that query
in your SQL statement.
I got this out of the documenter:
Properties
DateCreated: 3/16/2006 10:46:39 AM DOL: Long binary data
GUID: {guid {6DEFE900-F5FE- LastUpdated: 7/12/2006 10:49:49 AM
472D-967F-
MaxRecords: 0 ODBCTimeout: 0
Orientation: Left-to-Right RecordLocks: Edited Record
RecordsAffected: 0 ReturnsRecords: True
Type: 80 Updatable: True
UseTransaction: True
SQL
SELECT dbo_tblAR_Base.CUS_NUM_AR, dbo_tblAR_Base.NAME_CM,
dbo_tblAR_Base.APPLY_TO_AR, dbo_tblAR_Base.MEDLINE_AR,
dbo_tblAR_Base.INS_CO_AR,
[CUS_NUM_AR] & CLng([APPLY_TO_AR]) & CLng([MEDLINE_AR]) & [INS_CO_AR]
AS MatchLnIns,
dbo_tblAR_Base.DOC_DATE_AR, dbo_tblAR_Base.TOTALAMOUNT,
dbo_tblAR_Base.DESC_CODE_AR, dbo_tblAR_Base.REC_SUBTYPE_AR,
dbo_tblAR_Base.ARTYPEID,
dbo_tblAR_Base.EffctDt, dbo_tblAR_Base.GroupID INTO tblAR1st
FROM tblERN_LastDenial INNER JOIN dbo_tblAR_Base ON
(tblERN_LastDenial.CUSTNUM_ER =
dbo_tblAR_Base.CUS_NUM_AR) AND (tblERN_LastDenial.InvNum =
dbo_tblAR_Base.APPLY_TO_AR)
AND (tblERN_LastDenial.LineNum = dbo_tblAR_Base.MEDLINE_AR) AND
(tblERN_LastDenial.INSNUM_ER = dbo_tblAR_Base.INS_CO_AR)
John Vinson - 28 Jul 2006 05:11 GMT
>I get an error when I try to view the SQL code:
>The SQL statement could not be executed because it contains ambiguous
>outer loins. To force one of the joins to be performed first, create a
>separate query that performs the first join and then include that query
>in your SQL statement.
I'm sorry, but this is much too involved to reliably diagnose on the
newsgroups. This query will have to either be deleted and (correctly)
recreated, or someone who understands the tables and the data involved
(the original developer??) will have to fix it.
I wish I could be more help, but anything I could suggest would be
guessing in the dark and might do more harm than good.
John W. Vinson[MVP]
Nick Monsour - 27 Jul 2006 19:12 GMT
I get an error when I try to view the SQL code:
The SQL statement could not be executed because it contains ambiguous
outer loins. To force one of the joins to be performed first, create a
separate query that performs the first join and then include that query
in your SQL statement.
I got this out of the documenter:
Properties
DateCreated: 3/16/2006 10:46:39 AM DOL: Long binary data
GUID: {guid {6DEFE900-F5FE- LastUpdated: 7/12/2006 10:49:49 AM
472D-967F-
MaxRecords: 0 ODBCTimeout: 0
Orientation: Left-to-Right RecordLocks: Edited Record
RecordsAffected: 0 ReturnsRecords: True
Type: 80 Updatable: True
UseTransaction: True
SQL
SELECT dbo_tblAR_Base.CUS_NUM_AR, dbo_tblAR_Base.NAME_CM,
dbo_tblAR_Base.APPLY_TO_AR, dbo_tblAR_Base.MEDLINE_AR,
dbo_tblAR_Base.INS_CO_AR,
[CUS_NUM_AR] & CLng([APPLY_TO_AR]) & CLng([MEDLINE_AR]) & [INS_CO_AR]
AS MatchLnIns,
dbo_tblAR_Base.DOC_DATE_AR, dbo_tblAR_Base.TOTALAMOUNT,
dbo_tblAR_Base.DESC_CODE_AR, dbo_tblAR_Base.REC_SUBTYPE_AR,
dbo_tblAR_Base.ARTYPEID,
dbo_tblAR_Base.EffctDt, dbo_tblAR_Base.GroupID INTO tblAR1st
FROM tblERN_LastDenial INNER JOIN dbo_tblAR_Base ON
(tblERN_LastDenial.CUSTNUM_ER =
dbo_tblAR_Base.CUS_NUM_AR) AND (tblERN_LastDenial.InvNum =
dbo_tblAR_Base.APPLY_TO_AR)
AND (tblERN_LastDenial.LineNum = dbo_tblAR_Base.MEDLINE_AR) AND
(tblERN_LastDenial.INSNUM_ER = dbo_tblAR_Base.INS_CO_AR)