hi
i am getting an error - Collection was modified; enumeration operation may not execute
it point son the next in my loop
i have to make it work!!
here is the code
For Each row In dt.Rows
number = row.ItemArray(0)
cmd2.CommandText = "select * from Pays where PhoneNumberFrom ='" & number & "'"
cmd2.Connection = con
cmd2.CommandType = CommandType.Text
con.Open()
Try
Dim adp2 As New OleDbDataAdapter(cmd2)
adp2.Fill(dt)
Catch
End Try
con.Close()
DataGrid2.DataSource = dt
DataGrid2.DataBind()
Next
thanks tali