M
mattc66 via AccessMonster.com
I have a button that adds data from a subform to another form.
If there is already data in the subform I want the new data to be added to
the record. Below is what I had tried and it's not working. Can anyone help
me with the syntax.
DoCmd.GoToRecord , Forms![frmMain]![sfrmSubform], acNewRec
Forms![frmMain]![sfrmSubform].Form![FldName] = me.txtData1
Forms![frmMain]![sfrmSubform].Form![FldName2] = Me.txtData2
Matt
If there is already data in the subform I want the new data to be added to
the record. Below is what I had tried and it's not working. Can anyone help
me with the syntax.
DoCmd.GoToRecord , Forms![frmMain]![sfrmSubform], acNewRec
Forms![frmMain]![sfrmSubform].Form![FldName] = me.txtData1
Forms![frmMain]![sfrmSubform].Form![FldName2] = Me.txtData2
Matt