R
rberry
I have an Old table TABLE 1 in an application which has a check fields CHK1,
CHK2 in it.
I have recently upgraded the application so that the check field are now a
series of records in a sub-form TABLE 2.
QUESTION
I want to increment through TABLE 1 one record at a time, then run a
conditional statement to see if CHK1, CHK2 is yes in each respective check
field and if it is I want to open TABLE 2 and add record to TABLE 2 so that
reflects the respective CHKn.
My question is can 2 recordsets be open simultaneously and if so how do I
swap between the 2 so that my VBA application knows which table I am working
on.
Basically I want to open TABLE 1.
Run a condition statement.
IF met save 2 fields to 2 variables.
Swap to TABLE 2
Add new record containg 2 field with the 2 variables
SWAP back to TABLE 1
Increment record till end of file.
Any ideas
Don't have any problems opening up
CHK2 in it.
I have recently upgraded the application so that the check field are now a
series of records in a sub-form TABLE 2.
QUESTION
I want to increment through TABLE 1 one record at a time, then run a
conditional statement to see if CHK1, CHK2 is yes in each respective check
field and if it is I want to open TABLE 2 and add record to TABLE 2 so that
reflects the respective CHKn.
My question is can 2 recordsets be open simultaneously and if so how do I
swap between the 2 so that my VBA application knows which table I am working
on.
Basically I want to open TABLE 1.
Run a condition statement.
IF met save 2 fields to 2 variables.
Swap to TABLE 2
Add new record containg 2 field with the 2 variables
SWAP back to TABLE 1
Increment record till end of file.
Any ideas
Don't have any problems opening up