T
Tony Williams
I thought I'd got the hang of DLookup but just recently I cannot get any of
them to work, so frustrating when I think I'm following convention.
Anyway I have a form (frmmain) on which is a subform (frmcomplaint) The
frmcomplaint has a control txtauthto (which has a control source
=[cmbemployee].[column](1)) I want to check the value of txtauthto against a
table tblindividual and find the value of a field txtsurname where the value
of another field txtmemnumber =thevalue of txtauthto on my form.
Here's my Dlookup:
=DLookUp("[txtsurname]","[
tblindividual]","[txtmemnumber]=Forms!frmmain!frmcomplaint.Form![txtauthto]")
But I get#Error. Where am I going wrong?
Thanks
Tony
them to work, so frustrating when I think I'm following convention.
Anyway I have a form (frmmain) on which is a subform (frmcomplaint) The
frmcomplaint has a control txtauthto (which has a control source
=[cmbemployee].[column](1)) I want to check the value of txtauthto against a
table tblindividual and find the value of a field txtsurname where the value
of another field txtmemnumber =thevalue of txtauthto on my form.
Here's my Dlookup:
=DLookUp("[txtsurname]","[
tblindividual]","[txtmemnumber]=Forms!frmmain!frmcomplaint.Form![txtauthto]")
But I get#Error. Where am I going wrong?
Thanks
Tony