hi,
can somebody please check for me the below coding:
Private Sub cmdSave_Click()
With Data1.Recordset
.AddNew
!oprid = txtOprID
!name = txtName
!type = cboType.Text
End With
Data1.Refresh
txtOprID = ""
txtName = ""
cboType.Text = ""
End Sub
the error is at the .AddNew.why??please help me!!