Hi,
I have an Add Record button on my form that I want to use to add records to a subform. I am using the following code:
Private Sub cmd_Add_Record_Click()
Forms![frm_Label_Tracking]![sfrm_Label_Tracking].SetFocus
DoCmd.GoToRecord , , acNewRec
End Sub
It's giving me an error telling me it can't find the subform field 'sfrm_Label_Tracking'. What am I doing wrong? Or this the wrong way to go about it?