G
geert.van.ransbeeck
Hello
I have 2 tables on which I would base a query.
In this query I would create a calculated field based on both fields
fields from both tables.
Example: lets say in Table A I have 3 records with 3 fields. Field 1
contains values as '1-5', '5-10', '10-15'. Field 2 contains the
corresponding field values '5', '10' and '15' and field 3 contains the
values '4', '5' and '6'.
In table B I have 3 records with 2 fields, the field values for the
first field are '4', '9' and '12'. The second field contains the
values '1', '2', '3'.
Now I make a query in whivh I create a calculated field: If the value
of field 1 in Table B is between 1 and 5 (field 1 in Table A (1-5)),
so add the corresponding field 2 for this record in Table A to the
corresponding first field in table 2.
So if I have the value 9 in table B (in field 1), this lies between
5-10, so in this case add 2 to 10, with a result of 12 in my new
calculated field.
Can anybody help me please?
I have 2 tables on which I would base a query.
In this query I would create a calculated field based on both fields
fields from both tables.
Example: lets say in Table A I have 3 records with 3 fields. Field 1
contains values as '1-5', '5-10', '10-15'. Field 2 contains the
corresponding field values '5', '10' and '15' and field 3 contains the
values '4', '5' and '6'.
In table B I have 3 records with 2 fields, the field values for the
first field are '4', '9' and '12'. The second field contains the
values '1', '2', '3'.
Now I make a query in whivh I create a calculated field: If the value
of field 1 in Table B is between 1 and 5 (field 1 in Table A (1-5)),
so add the corresponding field 2 for this record in Table A to the
corresponding first field in table 2.
So if I have the value 9 in table B (in field 1), this lies between
5-10, so in this case add 2 to 10, with a result of 12 in my new
calculated field.
Can anybody help me please?