Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "select *from Payroll", Cn, adOpenDynamic, adLockOptimistic
rs.AddNew
rs!Date = Text1.Text
rs!Emp_ID = Combo1.Text
rs!EmpName = Text2.Text
rs!Father_Husband = Text3.Text
rs!Designation = Text4.Text
rs!PANNo = Text5.Text
rs!PF_PENNo = Text6.Text
rs!HRA = Text7.Text
rs!Basic = Text8.Text
rs!TA = Text9.Text
rs!DA = Text10.Text
rs!PF = Text11.Text
rs!Medical = Text12.Text
rs!GrossPay = Text13.Text
rs!PTax = Text14.Text
rs!NetPay = Text15.Text
rs!TotalDeduction = Text16.Text
rs!AccountNo = Text17.Text
rs.Update
MsgBox "Your Record Has been Saved."
End Sub
in thi coding iam getting errr91 please solve this problem