Question : loop through all the DataRows in an array of data rows to update rows in a table

I'm trying to update multiple rows in a table with a common value in a field called ReferralID as per the code below.  
Code Snippet:
1:
2:
3:
4:
5:
Dim DocsRow() As Data.DataRow
DocsRow() = DsDocsRelDocs.Tables("DocsRelDocs").Select("ReferralID = " & ReferralID)
         For Each DataRow In DocsRow()
                    DocsRow("SortedRelDocs") = SortedRelDocs
         Next

Answer : loop through all the DataRows in an array of data rows to update rows in a table

Hi FatalErr,
Ignore the previous sample,try this instead.
 
For Each DataRow1 As Data.DataRow In DocsRow
                DataRow1.AcceptChanges()
                DataRow1("SortedRelDocs") = SortedRelDocs
Next
Random Solutions  
 
programming4us programming4us