I am trying to use the results of a query as the value of a field that is displayed on a form. I only get #error when I execute the code. The query works correctly when it's executed by itself, returning a value for PvsD_LName.
The code is :
=DLookUp("PvsD_LName","qryDescName","[CaseNo = ]" & [CaseNumber] & ""
Can anyone look at this and advise what I'm doing wromg or how to fix this.
Thanks in advance for the help.
The code is :
=DLookUp("PvsD_LName","qryDescName","[CaseNo = ]" & [CaseNumber] & ""
Can anyone look at this and advise what I'm doing wromg or how to fix this.
Thanks in advance for the help.