Abu Musa
November 3rd, 1999, 10:34 AM
Hi
I am having problems using subforms in Access. If I embedd a subform which appears as a datasheet on a main form, I have problems using the
DoCmd.GotoRecord(....) when using this for the subform object from the main form code page.
e.g.
Private Sub cmdAdd_Click()
Forms!f001Country![CountryList].Form.AllowAdditions = True
Me!CountryList.SetFocus
DoCmd.GoToRecord acDataForm, "Forms!f001Country![CountryList].Form", acNewRec
End Sub
In the above "CountryList" is the name of the subform.
Your help is much appreciated
Abu Musa
I am having problems using subforms in Access. If I embedd a subform which appears as a datasheet on a main form, I have problems using the
DoCmd.GotoRecord(....) when using this for the subform object from the main form code page.
e.g.
Private Sub cmdAdd_Click()
Forms!f001Country![CountryList].Form.AllowAdditions = True
Me!CountryList.SetFocus
DoCmd.GoToRecord acDataForm, "Forms!f001Country![CountryList].Form", acNewRec
End Sub
In the above "CountryList" is the name of the subform.
Your help is much appreciated
Abu Musa