I have two recordsets. Each one of them has the fields: "Product" and "Location" and some other fields shown below.
recordset 1:
Product Location LW WK2 WK3 WK4
1 10
2 20
recordset 2:
Product Location LW WK2 WK3 WK4
1 10
2 30
I like to perform some calculations which involves fields from both recordsets. But I need to link the "product" and "location" fields from recordset1 to the "product" and "location" fields from recordset2.
I can do my calculations in VBA using the Fields.Value property but I don't know how to link these two recordets before I can start my calculations. Once I have my calculations done, then I can simple copy them to another recordset3 (which I have figured out how to do). But I am still struggling with how to link my recordsets 1 and 2.
Any ideas/help will be highly appreciated. Thanks!
Jay
recordset 1:
Product Location LW WK2 WK3 WK4
1 10
2 20
recordset 2:
Product Location LW WK2 WK3 WK4
1 10
2 30
I like to perform some calculations which involves fields from both recordsets. But I need to link the "product" and "location" fields from recordset1 to the "product" and "location" fields from recordset2.
I can do my calculations in VBA using the Fields.Value property but I don't know how to link these two recordets before I can start my calculations. Once I have my calculations done, then I can simple copy them to another recordset3 (which I have figured out how to do). But I am still struggling with how to link my recordsets 1 and 2.
Any ideas/help will be highly appreciated. Thanks!
Jay