J
Joel
TIA:
Have Table1 and Table2.
Both tables have ID and SSN fields.
I would like to Loop through records in Table1, take ID
in Table1, Find it in Table 2 and set SSN in Table2 = SSN
in Table1
Something like:
Dim rst As DAO.Recordset
Set DataBase = CurrentDb
Do Until rst1.EOF
Set rst1 = DataBase.OpenRecordset("table1")
id1 = rst1!id
ssn1=rst1!ssn
Set rst2 = DataBase.OpenRecordset("table2")
rst2.FindFirst "id1"
'Edit record in Table2 code so SSN =SSN from Table1
Loop
I know this doesn't work but I think I have the proper
concept.
Can someone help with the details!
Thanks, Joel
Have Table1 and Table2.
Both tables have ID and SSN fields.
I would like to Loop through records in Table1, take ID
in Table1, Find it in Table 2 and set SSN in Table2 = SSN
in Table1
Something like:
Dim rst As DAO.Recordset
Set DataBase = CurrentDb
Do Until rst1.EOF
Set rst1 = DataBase.OpenRecordset("table1")
id1 = rst1!id
ssn1=rst1!ssn
Set rst2 = DataBase.OpenRecordset("table2")
rst2.FindFirst "id1"
'Edit record in Table2 code so SSN =SSN from Table1
Loop
I know this doesn't work but I think I have the proper
concept.
Can someone help with the details!
Thanks, Joel