G
Guest
Hi all:
I am using the following DLookup() function on a subform and it works....as
in it shows the data I expect it to when I view the subform in "form view" by
itself and not as part of the master form. When I view the master form the
Dlookup up function returns "#Name?".
Can anyone help me by telling me why it would return this value? I assume
it has something to do with the fact that I am working with a master and
subform and think the problem is with the
"[Forms]![frmColmHeaderSubformColmDetail]![ColmDetailIntakeID])"
DLookup() function being used:
=DLookUp("[Variety]","[qryIntakeLookup]","[IntakeID]=" &
[Forms]![frmColmHeaderSubformColmDetail]![ColmDetailIntakeID])
Details:
Master form Name: frmColmHeader
Subform Name: frmColmHeaderSubformColmDetail
Unbound control on subform Name: VarietyDLookup
qryIntakeLookup: is the query that contains the data I am looking for -
Variety
Variety & IntakeID: are both fields in the query qryIntakeLookup
Any help would be greatly appreciated.
Thanks,
FatMan
I am using the following DLookup() function on a subform and it works....as
in it shows the data I expect it to when I view the subform in "form view" by
itself and not as part of the master form. When I view the master form the
Dlookup up function returns "#Name?".
Can anyone help me by telling me why it would return this value? I assume
it has something to do with the fact that I am working with a master and
subform and think the problem is with the
"[Forms]![frmColmHeaderSubformColmDetail]![ColmDetailIntakeID])"
DLookup() function being used:
=DLookUp("[Variety]","[qryIntakeLookup]","[IntakeID]=" &
[Forms]![frmColmHeaderSubformColmDetail]![ColmDetailIntakeID])
Details:
Master form Name: frmColmHeader
Subform Name: frmColmHeaderSubformColmDetail
Unbound control on subform Name: VarietyDLookup
qryIntakeLookup: is the query that contains the data I am looking for -
Variety
Variety & IntakeID: are both fields in the query qryIntakeLookup
Any help would be greatly appreciated.
Thanks,
FatMan