J
Jack
What is the syntax for the criteria in DLookup in a subform to refer to a
control (MyControl) on the subform? I have tried the following and none seem
to work:
"[MyField] = " & Forms!NameOfMainForm!NameOfSubformControl!MyControl
"[MyField] = " & Forms!NameOfSubform!MyControl
"[MyField] = " & NameOfSubform!MyControl
The subform control and the subform have the same name so the last criteria
could refer to either.
Thanks,
Jack
control (MyControl) on the subform? I have tried the following and none seem
to work:
"[MyField] = " & Forms!NameOfMainForm!NameOfSubformControl!MyControl
"[MyField] = " & Forms!NameOfSubform!MyControl
"[MyField] = " & NameOfSubform!MyControl
The subform control and the subform have the same name so the last criteria
could refer to either.
Thanks,
Jack