发表于:2003-04-23 12:27:00
2楼
Private Sub SaveData()
Dim i As Integer
Dim valid As Boolean
On Error Resume Next
valid = True
Data1.Recordset.AddNew
Data1.Recordset.Fields("dtime") = TimeSerial(OnHour, OnMinute, OnSecond)
Data1.Recordset.Fields("systime") = Time
Data1.Recordset.Fields("get_xl") = LF(1)
Data1.Recordset.Fields("get_fjs") = LF(2)
Data1.Recordset.Fields("get_cs") = LF(3)
Data1.Recordset.Fields("get_sys") = LF(4) Data1.Recordset.Fields("get_cj") = LF(5)
On Error Resume Next
Data1.Recordset.Update ‘更新数据库记录
Data1.Recordset.MovePrevious
End Sub