I am trying to add information from the textboxes on my form to the database on the system and it is giving me the error message
Run-time error '3426': This action was cancelled by an associated object.
This is the statement I am using:
Data1.Recordset.AddNew
Data1.Recordset.Fields("ApDate" = Text1.Text
Data1.Recordset.Fields("Time" = Text2.Text
Data1.Recordset.Fields("LastName" = Text3.Text
Data1.Recordset.Fields("FirstName" = Text4.Text
Data1.Recordset.Fields("DOB" = Text5.Text
Data1.Recordset.Fields("PhoneNumber" = Text6.Text
Data1.Recordset.Fields("OtherNumber" = Text7.Text
Data1.Recordset.Fields("Transportation" = Text8.Text
Data1.Recordset.Fields("Notes and Comments" = Text9.Text
Data1.Recordset.Update
Data1.Recordset.Close
I am trying to find out why I am getting this message.
Run-time error '3426': This action was cancelled by an associated object.
This is the statement I am using:
Data1.Recordset.AddNew
Data1.Recordset.Fields("ApDate" = Text1.Text
Data1.Recordset.Fields("Time" = Text2.Text
Data1.Recordset.Fields("LastName" = Text3.Text
Data1.Recordset.Fields("FirstName" = Text4.Text
Data1.Recordset.Fields("DOB" = Text5.Text
Data1.Recordset.Fields("PhoneNumber" = Text6.Text
Data1.Recordset.Fields("OtherNumber" = Text7.Text
Data1.Recordset.Fields("Transportation" = Text8.Text
Data1.Recordset.Fields("Notes and Comments" = Text9.Text
Data1.Recordset.Update
Data1.Recordset.Close
I am trying to find out why I am getting this message.