G
Gary Stark
I have an issue to address that's causing me to loose what little haie I have left.
The scenario is that i have two tables - Table1 and Table2 - and they are linked on the contents of a field fCode which exists in both tables, so that a query on Table1 only returns data where there is a related entry with a matching fCode value in Table2.
So far, so good.
We need to understand that the data in Table2 is dynamic, and is in fact a linked table, attached to a .DBF file that can be changed at will by other processes. This part is not a problem, but it will only, and always, contain certain validated data, and the linked (source) table cannot be changed or have records added to it.
The problem I have is that there are certain records in Table1 that have an empty value in fCode. This is acceptable and by design, but the nature of the linking process (to Table2) excludes those records from the query.
Because I can't modify the source data, I cannot simply add a blank record to Table2.
The way I see it is that I have to try to formulate the linking of the tables in some way, along the lines of
if( len( [Table1]![fCode] ) < 1 Or ....
in the join statement of the SQL query, but I simply don't know how write this sort of code in Access.
Does anyone have any suggestions for how to write this query, or any other suggestions for how to somlve this problem?
Thanx in advance for any and all suggestions.
The scenario is that i have two tables - Table1 and Table2 - and they are linked on the contents of a field fCode which exists in both tables, so that a query on Table1 only returns data where there is a related entry with a matching fCode value in Table2.
So far, so good.
We need to understand that the data in Table2 is dynamic, and is in fact a linked table, attached to a .DBF file that can be changed at will by other processes. This part is not a problem, but it will only, and always, contain certain validated data, and the linked (source) table cannot be changed or have records added to it.
The problem I have is that there are certain records in Table1 that have an empty value in fCode. This is acceptable and by design, but the nature of the linking process (to Table2) excludes those records from the query.
Because I can't modify the source data, I cannot simply add a blank record to Table2.
The way I see it is that I have to try to formulate the linking of the tables in some way, along the lines of
if( len( [Table1]![fCode] ) < 1 Or ....
in the join statement of the SQL query, but I simply don't know how write this sort of code in Access.
Does anyone have any suggestions for how to write this query, or any other suggestions for how to somlve this problem?
Thanx in advance for any and all suggestions.