D
dbarmer
Dear All:
I am trying to open two tables and read the data in VBA. One is a master
table that contains key info, needed to grab data from the second. I am
having trouble with the OpenRecordSet Commands.
Set rst = db.OpenRecordset("Eweek", dbOpenTable)
I want to Loop each record from "Eweek" - [ENO] and compare it to another
table that has a same field [ENO]. (loop all records in the second table and
calculate a function) if the [ENO] field matches. IF the data matches, I
want to post the final results in a third table for reporting purposes.
I am geting errors when trying to create two recordsets. How do you "set
rst" for more than one table? I tried rst1 and rst2.
Any examples would be most helpful.
P.S. table2 will contain many [ENO] with other fields to caculate data. SO
Creating a query would be a nightmare.
I am trying to open two tables and read the data in VBA. One is a master
table that contains key info, needed to grab data from the second. I am
having trouble with the OpenRecordSet Commands.
Set rst = db.OpenRecordset("Eweek", dbOpenTable)
I want to Loop each record from "Eweek" - [ENO] and compare it to another
table that has a same field [ENO]. (loop all records in the second table and
calculate a function) if the [ENO] field matches. IF the data matches, I
want to post the final results in a third table for reporting purposes.
I am geting errors when trying to create two recordsets. How do you "set
rst" for more than one table? I tried rst1 and rst2.
Any examples would be most helpful.
P.S. table2 will contain many [ENO] with other fields to caculate data. SO
Creating a query would be a nightmare.