P
Pierre
Hi all
i have two table that i want to link on the nearest record of a field.
(The other fields are not shown)
table1 table2
code code
20 1
10
100
250
500
In the example 20 should be related to 10 since it is the neareast.
If i have 90 in table 1 i want 100 in table 2
If i have 200 in table 1 i want 250 in table 2
If i have 500 in table 1 i want 500 in table 2
.... and so on
I want ot do that winth a query but i always get an error message
I would like to avoid the use of function like dlookup since they are slow.
Actually i am doing that with function but i want to do it with sql
Best regards
Pierre
i have two table that i want to link on the nearest record of a field.
(The other fields are not shown)
table1 table2
code code
20 1
10
100
250
500
In the example 20 should be related to 10 since it is the neareast.
If i have 90 in table 1 i want 100 in table 2
If i have 200 in table 1 i want 250 in table 2
If i have 500 in table 1 i want 500 in table 2
.... and so on
I want ot do that winth a query but i always get an error message
I would like to avoid the use of function like dlookup since they are slow.
Actually i am doing that with function but i want to do it with sql
Best regards
Pierre