what's wrong with my code? Me.frmLastUpdated.Form.Recordset.AddNew

yepwingtim

Registered User.
Local time
Today, 11:17
Joined
Jun 6, 2008
Messages
126
Private Sub Form_AfterUpdate()

Me.frmLastUpdated.Form.Recordset.AddNew "Comp_Name", "Daniel"

End Sub

Im inserting new data to a subform named frmLastUpdated which gives me lastest name that was changed to the form
________
Volcano Vaporizer Review
 
Last edited:
The Recordset.AddNew method doesn't take parameters. Maybe you need to do something like ...
Code:
with me.frmSubForm.Form.Recordset
  .addnew
  !StringField = "SomeString"
  !IntegerField = 1234
  .update
end with
 

Users who are viewing this thread

Back
Top Bottom