I'm encountering an error in MS Access 2007 when I try to store values from a form to a table. Here's a snippet of the VB:
I do have more than two fields being stored, but it didn't seem necessary to list them all - 12 total. The idea is that the user will click the 'Submit' button (the above code being the event) and thereafter, the values get stored to the table and the form clears the entered values for a subsequent entry.
The run-time error '3003' says "Could not start transaction; too many transactions already nested". Does that mean I'm trying to store too many input values?
Code:
Private Sub Submit_Update_Click()
Dim DB As Database
Dim new_comment As Recordset
Set DB = CurrentDb()
Set new_comment = DB.OpenRecordset("tbl_History", dbOpenDynaset)
new_comment.AddNew
new_comment("AWT") = AWT.Value
new_comment("Issue_Criticality") = Issue_Criticality.Value
new_comment.Update
new_comment.Close
Done1:
AWT.Value = Null
Issue_Criticality.Value = Null
Done:
DB.Close
End Sub
The run-time error '3003' says "Could not start transaction; too many transactions already nested". Does that mean I'm trying to store too many input values?
Comment