Hi William ,
Thanks for the help.
I am using the below function for this and it working fine ../As it is taking a bit time for exce I posted the query
Function SetStepCount (TestID)
On Error Resume Next
Set StepCommand = TDConnection.Command
StepCommand.CommandText = "Select count(*) from DESSTEPS where DESSTEPS.DS_TEST_ID =" & TestID
Set StepCountSet = StepCommand.Execute()
Test_Fields.Field("TS_USER_20").IsReadOnly = False
Test_Fields.Field("TS_USER_20").Value = StepCountSet.fieldvalue(0)
Test_Fields.Field("TS_USER_20").IsReadOnly = True
On Error GoTo 0
End Function
I will implement your solution and will update you
Thanks
Avi.