E
EagleOne
2003
Setup: Need the results of three tables being 2-stepped joined.
Table1 is the main data table. Table2 and Table3 are validation tables for two separate fields in
Table1.
If Table1.Field3 is not in Table2 then Query1 results creates an Expression Field based upon the
JOIN Table1 to Table2 with IIF(IsNull(Table1.Field3),"Not Found","Found")
If Table1.Field5 (issue: can I use Query1.Field5 because Table1 is not available in Query2?) is not
in Table3 then Query2 results creates an Expression Field based upon the JOIN Table1 to Table3 with
IIF(IsNull(Table1.Field5),"Not Found","Found")
Plan: 1) Create/Save Query1 which joins Table1 to Table2
2) Create/Save Query2 which uses Query1 as 1st Joined table to 2nd Joined = Table3
ERROR in FROM: "JOIN Expression not supported" which is:
FROM Query1 LEFT JOIN Table3 ON Query1.Field3 = Table3.Field1
Note: Field3 from Query1 is actually SELECTED in Query2 as "Table1.Field5 AS BCN"
I believe that this is causing an error. How do I refer to fields setup in Query1 when called
effectively as Table1 in Query2's JOIN? i.e. as Table1.Field5 or as BCN?
Concerns:
1) How do I properly SQL-code Query1 in the 1st part of a LEFT JOIN?
2) How do I SELECT (SQL-code) in Query2, the fields created in Query1?
3) What is the logic or syntax error in my FROM statement?
4) Is there a better way?
TIA EagleOne
Setup: Need the results of three tables being 2-stepped joined.
Table1 is the main data table. Table2 and Table3 are validation tables for two separate fields in
Table1.
If Table1.Field3 is not in Table2 then Query1 results creates an Expression Field based upon the
JOIN Table1 to Table2 with IIF(IsNull(Table1.Field3),"Not Found","Found")
If Table1.Field5 (issue: can I use Query1.Field5 because Table1 is not available in Query2?) is not
in Table3 then Query2 results creates an Expression Field based upon the JOIN Table1 to Table3 with
IIF(IsNull(Table1.Field5),"Not Found","Found")
Plan: 1) Create/Save Query1 which joins Table1 to Table2
2) Create/Save Query2 which uses Query1 as 1st Joined table to 2nd Joined = Table3
ERROR in FROM: "JOIN Expression not supported" which is:
FROM Query1 LEFT JOIN Table3 ON Query1.Field3 = Table3.Field1
Note: Field3 from Query1 is actually SELECTED in Query2 as "Table1.Field5 AS BCN"
I believe that this is causing an error. How do I refer to fields setup in Query1 when called
effectively as Table1 in Query2's JOIN? i.e. as Table1.Field5 or as BCN?
Concerns:
1) How do I properly SQL-code Query1 in the 1st part of a LEFT JOIN?
2) How do I SELECT (SQL-code) in Query2, the fields created in Query1?
3) What is the logic or syntax error in my FROM statement?
4) Is there a better way?
TIA EagleOne