Jul 24 2023 05:02 PM
Hello Experts,
I have a bound parent form (frmPPA)
I also have a subform (subfrmPPA)
I have an unbound field on frmPPA and I want to populate it with the value from subfrmPPA.ProjIDfk (the name of field is txtProjIDfk)
I have tried many different combinations to no avail.
I thought the strategy for a bound form is:
Forms!mainformname.subformname.form.yourfieldname
I have tried:
=[Forms]![frmPPA].[subfrmPPA].[Form].[txtIDPrjDet]
=[Forms]![frmPPA].[subfrmPPA].[txtIDPrjDet]
=[frmPPA].[Form].[txtProjIDfk]
=[Forms]![frmPPA].[txtProjIDfk]
=[Forms]![frmPPA].[forms].[txtProjIDfk]
I dont know what I am doing wrong.
thank you
Jul 24 2023 07:58 PM
Solution@Tony2021 This simple expression should work. Try it please and let us know.
=[subfrmPPA].[Form]![txtIDPrjDet]
Jul 25 2023 05:31 AM
@Tony2021 I think what you are after as ControlSource is:
=[subfrmPPA].[Form]![ProjIDfk]
- or:
=[subfrmPPA].[Form]![txtProjIDfk]
Please note, that subfrmPPA must be the name of the subform control which may differ from the name of the subform itself.
Jul 25 2023 05:39 PM
Jul 24 2023 07:58 PM
Solution@Tony2021 This simple expression should work. Try it please and let us know.
=[subfrmPPA].[Form]![txtIDPrjDet]