📄 data1.updaterecord 时会发生数据类型转换错误.txt
字号:
你 可 以 这 样 做 :
Private Sub Data1_Validate(Action As Integer, Save As Integer)
If Text1.DataChanged And Text1.Text = "" Then
Text1.DataChanged = False 'So this data is not saved
Data1.UpdateRecord ' This saves the data that
' may have changed in the other controls
' Now clear the numeric field
Data1.Recordset.Edit
Data1.Recordset![Year Born] = Null
Data1.Recordset.Update
End If
End Sub
<END>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -