Gotcha. Sorry, the language used in OP had me quite confused on this.
So, to edit an existing record, simply:
Code:
rsPDF.Edit
rsPDF("txt1").Value = rsIn("txt1").value
rsPDF.Update
To add a new record:
Code:
rsPDF.Addnew
rsPDF("txt1").Value = rsIn("txt1").Value
rsPDF.Update
It sounds like you might be trying to dynamically match column names? I.e., update rsPDF so rsPDF("txt1") = rsIn("txt1"). If so, something like:
Code:
Dim fld As DAO.Field, fld2 As DAO.field
rsPDF.AddNew
For Each fld In rsIn.Fields
For Each fld2 In rsPDF.Fields
If fld2.Name = fld.Name Then
fld2.Value = fld.Value
Exit For
End If
Next fld2
Next fld
rsPDF.Update