更新审核时间的代码放到datacolchanged就行了,原来显示审核图章的用法不变啊
Dim lab As WinForm.Label = e.Form.Controls("审核图章")
Dim pic As WinForm.PictureBox = e.Form.Controls("PictureBox1")
If e.Table.current("审核") =True Then
pic.Imagefile = "\\192.168.1.106\D\生产管理\审核通过.png" '审核图片路径
lab.Text = user.name & " " & Date.now '显示审核人和日期
e.Form.Controls("审核").text =tables("表A").current("审核人")
e.Form.Controls("审核日期").text =tables("表A").current("审核日期")
Else
pic.Imagefile = ""
lab.Text =""
e.Form.Controls("审核").text =""
e.Form.Controls("审核日期").text =""
End If