老师,确实是这样。
简单说明一下功能。检验结果:输入f增加一行,光标移到产品编码框,循环输入。检验结果:输入b光标移到人为故障:在性能检验:那里回车,增加一行,光标回到产品编码框
焊接调试检验_Button2_Click
Tables("焊接调试检验表").AddNew()
焊接调试检验_Button3_Click
If Tables("焊接调试检验表").Current IsNot Nothing Then
Tables("焊接调试检验表").Current.Delete
End If
焊接调试检验_DropBox1_Leave
Tables("焊接调试检验表").Current("名称") = ("电脑中频治疗仪")
Tables("焊接调试检验表").Current("结果结论1")=e.Form.Controls("DropBox1").Text
Forms("焊接调试检验").panel.FindForm.Activate
Forms("焊接调试检验").Controls("DropBox2").Select()
焊接调试检验_DropBox2_Leave
Tables("焊接调试检验表").Current("名称") = ("电脑中频治疗仪")
Tables("焊接调试检验表").Current("结果结论2")=e.Form.Controls("DropBox1").Text
Tables("焊接调试检验表").Current("检验人")=e.Form.Controls("ComboBox1").Text
Tables("焊接调试检验表").Current("产品处理结果1")=Nothing
Tables("焊接调试检验表").Current("产品处理结果2")=Nothing
Forms("焊接调试检验").panel.FindForm.Activate
Forms("焊接调试检验").Controls("TextBox1").Select()
Tables("焊接调试检验表").AddNew()
焊接调试检验_TextBox1_Enter
e.Form.controls("TextBox3").text =Nothing
e.Form.controls("DropBox1").text =Nothing
e.Form.controls("DropBox2").text =Nothing
焊接调试检验_TextBox1_Leave
Forms("焊接调试检验").panel.FindForm.Activate
Forms("焊接调试检验").Controls("TextBox3").Select()
焊接调试检验_TextBox1_TextChanged
static flag As Boolean = False
If e.sender.text.length > 3 AndAlso flag Then
If e.sender.text(0) = "0" And e.sender.text(1)="1" Then
e.Form.controls("TextBox2").text = "J18A1"
e.Form.controls("TextBox2").WriteValue
End If
End If
flag = True
焊接调试检验_TextBox3_Leave
static flag As Boolean = False
If e.Form.controls("TextBox3").text = ("f") Then
Tables("焊接调试检验表").Current("结果结论1") = ("√")
Tables("焊接调试检验表").Current("结果结论2") = ("√")
Tables("焊接调试检验表").Current("产品处理结果1") = ("转下一道")
Tables("焊接调试检验表").Current("产品处理结果2") = ("转下一道")
Tables("焊接调试检验表").Current("名称") = ("电脑中频治疗仪")
Forms("焊接调试检验").panel.FindForm.Activate
Forms("焊接调试检验").Controls("TextBox1").Select()
Tables("焊接调试检验表").AddNew()
End If
If e.Form.controls("TextBox3").text = ("b") Then
Forms("焊接调试检验").panel.FindForm.Activate
Forms("焊接调试检验").Controls("DropBox1").Select()
End If
此主题相关图片如下:1111.jpg

[此贴子已经被作者于2018/5/21 15:46:48编辑过]