I have two tables, one with tasks and the other with some relative data as below:
So this one represents daily activity for different clients. I need to fill "Hummer qty" column for every day entered for every Client using second table below where there is Dated history of each Client, at which dates quantity of hummers were increased by each Client.
as a result, first table should be as below:
in this case tried to use Dlookup with conditions where daily dates >= to history dates + Clients are identical between tables. But it does not work (empty). Simple query returns only first found quantities in history and set it to all the rows of respective client.
Code:
Task Client Date Hummer qty Made something a X1 01.02.2022 Made something b X2 05.02.2022 Made something c X3 05.02.2022 Made something d X2 07.02.2022
Code:
Client Date Hummer qty X1 15.03.2021 1 X1 23.05.2021 3 X2 08.02.2019 1 X2 06.02.2022 2 X2 06.03.2022 3 X3 16.03.2022 1
Code:
Task Client Date Hummer qty Made something a X1 01.02.2022 3 Made something b X2 05.02.2022 1 Made something c X3 05.02.2022 0 Made something d X2 07.02.2022 2
Comment