SQLScholar
Programmer
Hey all,
I have basically the below code:
The problem i am having is that in the second loop its starting off on the last element of the data table. How can i reset so it goes through the table a second time?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I have basically the below code:
Code:
Dim olead As New Data.OleDb.OleDbDataAdapter
Dim dt As New Data.DataTable
Dim AccountName As DataColumn = New DataColumn("AccountName")
AccountName.DataType = System.Type.GetType("System.String")
olead.Fill(dt, Dts.Variables("NewAccountList").Value)
dt.Columns.Add(AccountName)
Try
For Each row As Data.DataRow In dt.Rows
CreateAdAccount(row)
Next
System.Threading.Thread.CurrentThread.Sleep(300000)
For Each row As Data.DataRow In dt.Rows
createdir(row)
next
The problem i am having is that in the second loop its starting off on the last element of the data table. How can i reset so it goes through the table a second time?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------