控件名称定义的有规律一点,比如批号A控件名称为:TextBox_批号_1,米数A控件名称为:TextBox_米数_1,批号B控件名称为:TextBox_批号_2,米数B控件名称为:TextBox_米数_2,然后
For i As Integer = 1 To ftcs
Dim nr As Row = Tables("分条").AddNew
nr("录入时间") = e.Form.Controls("DateTimePicker3").Text
nr("操作人员") = e.Form.Controls("TextBox36").Text
nr("母条批号") = e.Form.Controls("TextBox1").Text
nr("来料批号") = e.Form.Controls("TextBox2").Text
nr("复查日期") = e.Form.Controls("DateTimePicker2").Text
nr("复查检验员") = e.Form.Controls("TextBox6").Text
nr("复查机台号") = e.Form.Controls("TextBox7").Text
nr("子条批号") = e.Form.Controls("TextBox_批号_" & i).Text
nr("子条米数
") = e.Form.Controls("TextBox_米数_
" & i).TextNext