Alistair J
Registered User.
- Local time
- Today, 17:27
- Joined
- Jun 25, 2008
- Messages
- 30
Hi
I have this DLookup as the control source on a text box which is on subform 'clientworkerlink' under form 'Client Details':
=DLookUp("[jobtitle]","[Worker Details]","workerID=Forms![Client Details]![clientworkerlink].Form!workerID")
This works fine and displays the jobtitle
I copied the 'Client Details' Form to 'Client Details2' and also the subform 'clientworkerlink' to 'clientworkerlink2'. I changed the subform on 'Client Details2' from 'clientworkerlink' to 'clientworkerlink2' and changed the DLookup to this:
=DLookUp("jobtitle","[Worker Details]","workerID=Forms![Client Details2]![clientworkerlink2].form!workerID")
However, this doesn't work and displays #Error.
I can't see why. Can anyone enlighten me? What have I got wrong?
I have this DLookup as the control source on a text box which is on subform 'clientworkerlink' under form 'Client Details':
=DLookUp("[jobtitle]","[Worker Details]","workerID=Forms![Client Details]![clientworkerlink].Form!workerID")
This works fine and displays the jobtitle
I copied the 'Client Details' Form to 'Client Details2' and also the subform 'clientworkerlink' to 'clientworkerlink2'. I changed the subform on 'Client Details2' from 'clientworkerlink' to 'clientworkerlink2' and changed the DLookup to this:
=DLookUp("jobtitle","[Worker Details]","workerID=Forms![Client Details2]![clientworkerlink2].form!workerID")
However, this doesn't work and displays #Error.
I can't see why. Can anyone enlighten me? What have I got wrong?