Dim Sum As Integer
For Each dar As DataRow In DataTables("Statement").DataRows
Dim Str1 As String = dar("remarks")
If Str1 > "" AndAlso Str1 = "s/l" Then
Dim drs As List(Of DataRow)
drs = DataTables("Statement").Select("[Ticket] = \'" & dar("Ticket") & "\' And [Profit]= \'\'")
For Each dr As DataRow In drs
drs("Profit") = dar("Profit")
dar("Profit")=""
Next
End If
Next