S
Steve Perrins
I have a field in a sub form that I need to fill with data from another
table on the same database.
The main form is called enquiry and the sub form is called child0 (sales_enq
is the actual form name).
In the control source for the field I need to fill I have tried the
following:-
=DLookUp("name","[developments]","[ID] =
[Forms]![enquiry]![child0]![DEVID]") produces a blank field, i.e. no
results.
=DLookUp("name","[developments]","[ID] =
[Forms]![enquiry]![child0].[DEVID]") produces #ERROR
The field DEVID on the subform does have a value in it.
The sub form is a list of records.
Where am I going wrong?
Thanks,
Steve Perrins.
table on the same database.
The main form is called enquiry and the sub form is called child0 (sales_enq
is the actual form name).
In the control source for the field I need to fill I have tried the
following:-
=DLookUp("name","[developments]","[ID] =
[Forms]![enquiry]![child0]![DEVID]") produces a blank field, i.e. no
results.
=DLookUp("name","[developments]","[ID] =
[Forms]![enquiry]![child0].[DEVID]") produces #ERROR
The field DEVID on the subform does have a value in it.
The sub form is a list of records.
Where am I going wrong?
Thanks,
Steve Perrins.