Hi folks, I have a Recordset temprs which is a clone of Recordset rs. In my function, Iam taking a clone of rs into temprs and then Iam updating rs. After updating rs, if i check my temprs, its also updated with the rs values rather than retaining the preupdated value. Why does this happen? I would like to take a clone of the original rs and then manupulate the rs in Function F1 and then in Function F2, I would like to merge the cloned recordset and the original record set. is this possible? Please help. Below is the code i used.
****
function ActualsProjection(){
var temprs1 = new ActiveXObject("AdoDb.RecordSet");
temprs1 = rs.clone();
rs.movefirst();
while(!rs.eof)
{
rs('TASKCOMPLETION_APPROVAL').value = 1;
rs.update();
rs.movenext();
}
filter = "TASKCOMPLETION_APPROVAL = 2";
temprs1.Filter = filter;
if(temprs1.Recordcount ==0)
alert('Clone has been updated by mistake. This should not happen.Clone should have retained the Orginal Recordset');
}
****
function ActualsProjection(){
var temprs1 = new ActiveXObject("AdoDb.RecordSet");
temprs1 = rs.clone();
rs.movefirst();
while(!rs.eof)
{
rs('TASKCOMPLETION_APPROVAL').value = 1;
rs.update();
rs.movenext();
}
filter = "TASKCOMPLETION_APPROVAL = 2";
temprs1.Filter = filter;
if(temprs1.Recordcount ==0)
alert('Clone has been updated by mistake. This should not happen.Clone should have retained the Orginal Recordset');
}