how would i ggo about coding this
that line is the problem
For i = 0 To maxrows - 1
For h = 1 To maxrows
Me.Controls.Item("TextBox" & h).Text = ds.Tables("TestCriteria").Rows(i).Item(0)
Me.Controls.Item("NumericUpDown" & h).Value = ds.Tables("TestCriteria").Rows(i).Item(1)
Next
Next
that line is the problem