|
1.将焦点句子写到最后
If Me![Text0] <> "" Then
rs.AddNew
rs("日期") = Me![Text0]
rs("工号") = Me![Text2]
rs("组别") = Me![Text1]
rs("姓名") = Me![Text3]
rs("号数") = Me![Text4]
rs("级别") = Me![Text6]
rs("面数&厚薄") = Me![Text10]
rs("板号") = Me![Text11]
rs("中数") = Me![Text12]
rs("颜色") = Me![Text8]
rs("数量") = Me![Text13]
rs.Update
MsgBox "添加成功", vbExclamation, "提示"
Me![Text9] = ""
Me![Text10] = ""
Me![Text11] = ""
Me![Text12] = ""
Me![Text13] = ""
Me.发钻子窗体.Requery
Set rs = Nothing
Else
MsgBox "日期不能为空", vbExclamation, "提示"
End If
Me![Text1].SetFocus
2.将子窗体的数据源中的ID设为降序, |
|