R
RD
Hi all,
Just a quick one ... I've never had to do anything like this before.
Set rs1 = db.OpenRecordset(SQLstatement, dbOpenDynaset)
rs1.Filter = strFilter
Set rs2 = rs1.OpenRecordset
Assuming the SQL statement opens an editable recordset, if I try to edit rs2
will it actually edit the record in the table that the SQL statement is based
on?
rs2.Edit
rs2.Fields(fieldname) = newvalue
rs2.Update
Or, should I go back and perform the edit on rs1?
Don't want to go to far down the wrong path.
Thanks,
RD
Just a quick one ... I've never had to do anything like this before.
Set rs1 = db.OpenRecordset(SQLstatement, dbOpenDynaset)
rs1.Filter = strFilter
Set rs2 = rs1.OpenRecordset
Assuming the SQL statement opens an editable recordset, if I try to edit rs2
will it actually edit the record in the table that the SQL statement is based
on?
rs2.Edit
rs2.Fields(fieldname) = newvalue
rs2.Update
Or, should I go back and perform the edit on rs1?
Don't want to go to far down the wrong path.
Thanks,
RD