Hi, I am beginner in Visual Basic. I am doing a simple ADODC project using MS Acces. In that when I add new record to the database it gives me error 'Object Required'.
I tried the same code onj different form but it is giving me same error. All the connections seem ok as the data is properly fetched at startup and ADODC control works fine navigating through db.
Please help me. My code is as follows...
I tried the same code onj different form but it is giving me same error. All the connections seem ok as the data is properly fetched at startup and ADODC control works fine navigating through db.
Please help me. My code is as follows...
Code:
Private Sub Form_Load() Set adoRecordset = New Recordset Private Sub cmdAdd_Click() On Error GoTo ErrLabel adoRecordset.AddNew Exit Sub ErrLabel: MsgBox Err.Description End Sub
Comment