HI,
It has been long time i used Acess. I am trying to check a condition and edit the recordset.
there are two recordset rst_local and rst_pplops.I compare the records from each recordset and edit one of them.
The condition is
If rst_pplpos("Deptid")=rst_local("DeptId") And rst_pplpos("Level")=rst_local("Level") Then
rst_local("ClearCheck")=True.
End IF
rst_pplops.Close
rst_local.MoveNext
Loop
What my question and where i am failing is ..whenever there is a deptid which is avalable rst_local but not in rst_pplops the process fails.
Can anyone suggest me a better way to handle this.
I want to compare the deptids from each recordset and edit the other recordset if and only if the deptids match.otherwise go to the next record.
Thanks
It has been long time i used Acess. I am trying to check a condition and edit the recordset.
there are two recordset rst_local and rst_pplops.I compare the records from each recordset and edit one of them.
The condition is
If rst_pplpos("Deptid")=rst_local("DeptId") And rst_pplpos("Level")=rst_local("Level") Then
rst_local("ClearCheck")=True.
End IF
rst_pplops.Close
rst_local.MoveNext
Loop
What my question and where i am failing is ..whenever there is a deptid which is avalable rst_local but not in rst_pplops the process fails.
Can anyone suggest me a better way to handle this.
I want to compare the deptids from each recordset and edit the other recordset if and only if the deptids match.otherwise go to the next record.
Thanks