A
ad
I would like to add new record to a subform using code. This is what I tried:
DoCmd.GoToRecord acDataForm, "Me.Special_requirements_subform", acNewRec
Me.Special_requirements_subform![Category] = "Motor related"
Me.Special_requirements_subform![Special Requirement] = "Special motor: " & Me.MCode1 & " + " & Me.MCode2
Obviously it didn't work. Can any body tell me the appropriate way to do this? Thanks in advance.
ad
DoCmd.GoToRecord acDataForm, "Me.Special_requirements_subform", acNewRec
Me.Special_requirements_subform![Category] = "Motor related"
Me.Special_requirements_subform![Special Requirement] = "Special motor: " & Me.MCode1 & " + " & Me.MCode2
Obviously it didn't work. Can any body tell me the appropriate way to do this? Thanks in advance.
ad