All,
I have the following code:
<font class="small">Code:</font><hr /><pre>
If Test_Fields(TSstatusField).Value = "Test Lead Approved" Then
TSlockField = getRule(TStableName,"LOCKFIELD")
If TSlockField &lt;&gt; "" Then
Set comm = eSigTD.Command
TestID = Test_Fields("TS_TEST_ID").Value
comm.CommandText = "UPDATE TEST SET TS_USER_01='Yes' WHERE TS_TEST_ID='" &amp; TestID &amp; "'"
Set rs = comm.execute
Actions.Action("act_filter_refresh").Execute
End If
End If

If Test_Fields(TSstatusField).Value = "Approver Rejected" Then
TSlockField = getRule(TStableName,"LOCKFIELD")
If TSlockField &lt;&gt; "" Then
Set comm = eSigTD.Command
TestID = Test_Fields("TS_TEST_ID").Value
comm.CommandText = "UPDATE TEST SET TS_USER_01='No' WHERE TS_TEST_ID='" &amp; TestID &amp; "'"
Set rs = comm.execute
Actions.Action("act_filter_refresh").Execute
End If
End If
</pre><hr />

When I move the test case into Test Lead Approved the refresh works good. However when I execute the second (moving it to Approved Rejected) statement it won't allow me to refresh and I get an error and script debugger comes up. Why doesn't it refresh like the first if statement does?