I am using a bound data control from VB6 SP5 that is linked to an Access 2000 table. I am trying to add a new student record using the following code:
stdDisp.student.Recordset.AddNew
stdDisp.student.Recordset.Edit
stdDisp.student.Recordset!ID = Val(stud_id$)
stdDisp.student.Recordset!lname = lastname$
stdDisp.student.Recordset!fname = firstname$
stdDisp.student.Recordset!m_init = ""
stdDisp.student.Recordset!cur_grade = curgrade
stdDisp.student.Recordset!bdate = bdate$
stdDisp.student.Recordset!mfsex = sex$
stdDisp.student.Recordset!ethnic = ethnic$
stdDisp.student.Recordset.Update
I am getting a error 3426. This code had been working up until recently. Nothing has changed that I am aware of. I have searched the forums and tried to place an Edit command before the update but still have the error.
Any suggestions????
stdDisp.student.Recordset.AddNew
stdDisp.student.Recordset.Edit
stdDisp.student.Recordset!ID = Val(stud_id$)
stdDisp.student.Recordset!lname = lastname$
stdDisp.student.Recordset!fname = firstname$
stdDisp.student.Recordset!m_init = ""
stdDisp.student.Recordset!cur_grade = curgrade
stdDisp.student.Recordset!bdate = bdate$
stdDisp.student.Recordset!mfsex = sex$
stdDisp.student.Recordset!ethnic = ethnic$
stdDisp.student.Recordset.Update
I am getting a error 3426. This code had been working up until recently. Nothing has changed that I am aware of. I have searched the forums and tried to place an Edit command before the update but still have the error.
Any suggestions????