Hey there
I'm trying to compare data between recordsets. What I want is take the value of one field in rst1 (rst1!flag = A) and look up the value in rst2 in the field of that name (rst2!A = ?). What is the syntax for doing that?
Dim fldname
Set fldname = rst1!flag
If rst1!subflag = rst2!"fldname" Then
rst1.Move Next
Else
'Update the record with the new value in rst2
rst1.MoveNext
End If
Of course, this doesn't work. But how do I code it so that it looks up rst2!A if rst1!flag = A?
Thanks for your help.
Marty
I'm trying to compare data between recordsets. What I want is take the value of one field in rst1 (rst1!flag = A) and look up the value in rst2 in the field of that name (rst2!A = ?). What is the syntax for doing that?
Dim fldname
Set fldname = rst1!flag
If rst1!subflag = rst2!"fldname" Then
rst1.Move Next
Else
'Update the record with the new value in rst2
rst1.MoveNext
End If
Of course, this doesn't work. But how do I code it so that it looks up rst2!A if rst1!flag = A?
Thanks for your help.
Marty