I want to read the table A and write in the table B
Table A
Field1 Field2
AA 5
BB 3
CC 2
Resutl in the Table B
Field1
AA
AA
AA
AA
AA
BB
BB
BB
CC
CC
But how to define the recordsets
With access 97
Dim db as database
Dim A as recordset, B as recordset
Set db = CurrentDb()
Set A = db.openrecordset("TblA"
Set B = db.openrecordset("TblB"
A.movefirst
do while not A.EOF
do A.Field2
B.addnew
B.Field1 = A.Field1
B.update
loop
A.movenext
loop
But how to do with access 2000
Thanks in advance
Table A
Field1 Field2
AA 5
BB 3
CC 2
Resutl in the Table B
Field1
AA
AA
AA
AA
AA
BB
BB
BB
CC
CC
But how to define the recordsets
With access 97
Dim db as database
Dim A as recordset, B as recordset
Set db = CurrentDb()
Set A = db.openrecordset("TblA"
Set B = db.openrecordset("TblB"
A.movefirst
do while not A.EOF
do A.Field2
B.addnew
B.Field1 = A.Field1
B.update
loop
A.movenext
loop
But how to do with access 2000
Thanks in advance