Dumferling
Member
- Local time
- Today, 04:23
- Joined
- Apr 28, 2020
- Messages
- 102
I know there are multiple (thousands) of sites that deal with this issue but I can't get any of them to actually work. No matter how I reference a subform 2 I get an error.
Basically I have a main form (frmCContractBrowser), a subform (frmAmendmentsListsubfrm) and a sub-sub form of frmAmendmentsListsubfrm called frmCAmendmentssub. I am trying to get the sub subform to scroll to a selected record using Seltop when I click on a item in a list box in the subform. The issue I have right now (never used Seltop before so I am sure there are other issues I haven't got to yet) is to reference the sub sub form when I select an item from the listbox in the sub form. The code (about the 10th version) is:
Forms!frmCContractBrowser!frmCAmendmentsListsubfrm.Form!frmCAmendmentssub.Form!SelTop = 5
Access says it can't find the sub sub form "frmCAmendmentssub" . I understood that putting the .Form means it should read it as a form and not as a control. What am I doing wrong here.
Basically I have a main form (frmCContractBrowser), a subform (frmAmendmentsListsubfrm) and a sub-sub form of frmAmendmentsListsubfrm called frmCAmendmentssub. I am trying to get the sub subform to scroll to a selected record using Seltop when I click on a item in a list box in the subform. The issue I have right now (never used Seltop before so I am sure there are other issues I haven't got to yet) is to reference the sub sub form when I select an item from the listbox in the sub form. The code (about the 10th version) is:
Forms!frmCContractBrowser!frmCAmendmentsListsubfrm.Form!frmCAmendmentssub.Form!SelTop = 5
Access says it can't find the sub sub form "frmCAmendmentssub" . I understood that putting the .Form means it should read it as a form and not as a control. What am I doing wrong here.