Hi
I'm trying to add a new record to a subform called itemsreceived_s ubform, using a command button. I can't get the clear difference between the subform control, and the subform itself. My code is as follows:
Private Sub cmdadd_Click()
If Me!Itemsreceive d_subform.Form. Dirty Then
Me!Itemsreceive d_subform.Form. Dirty = False
End If
Me![Itemsreceived subform].SetFocus ' This is the name of the subform
DoCmd.GoToRecor d , , acNewRec
End Sub
----------------------------------------------------
Any ideas? Thank you.
I'm trying to add a new record to a subform called itemsreceived_s ubform, using a command button. I can't get the clear difference between the subform control, and the subform itself. My code is as follows:
Private Sub cmdadd_Click()
If Me!Itemsreceive d_subform.Form. Dirty Then
Me!Itemsreceive d_subform.Form. Dirty = False
End If
Me![Itemsreceived subform].SetFocus ' This is the name of the subform
DoCmd.GoToRecor d , , acNewRec
End Sub
----------------------------------------------------
Any ideas? Thank you.
Comment