N
nybaseball22
Hello,
I have been working on this for some time and have tried many
different strings. I am trying to nest a DLookup in a subform that
will lookup an average calculated in a query. I want the string to
perform the DLookup on the subform when it is opened as a form and
when it is opened on the main form as a subform. Is there a code that
will make this work? So far, I have the below that will work when the
subform is opened as a subform, but not as a main form.
=DLookUp("[AvgOfPPG]","[AutosGasStats1Station]","[Station]=Forms!
[AutomobileGasolineSearch].[AutosGasData1sub]![Most Frequented]")
As always, Thanks for the help.
I have been working on this for some time and have tried many
different strings. I am trying to nest a DLookup in a subform that
will lookup an average calculated in a query. I want the string to
perform the DLookup on the subform when it is opened as a form and
when it is opened on the main form as a subform. Is there a code that
will make this work? So far, I have the below that will work when the
subform is opened as a subform, but not as a main form.
=DLookUp("[AvgOfPPG]","[AutosGasStats1Station]","[Station]=Forms!
[AutomobileGasolineSearch].[AutosGasData1sub]![Most Frequented]")
As always, Thanks for the help.