Your working hardcoded example has quotes around the value: you need those
in the non-hardcoded example as well.
=DLookUp("[supplier name]","00query1","[other number] ='" &
[Forms]![form1]![invoice number] & "'")
Exagerated for clarity, that 3rd parameter is
"[other number] = ' " & [Forms]![form1]![invoice number] & " ' "
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"tom" <(E-Mail Removed)> wrote in message
news:nIL2h.1268$(E-Mail Removed)...
> The following control works fine
>
> =[Forms]![form1]![invoice number]
>
> The following control does not work nor any of its permutations that I can
> figure
>
> =DLookUp("[supplier name]","00query1","[other number] =" &
> [Forms]![form1]![invoice number])
>
>
> The following control will work.
>
> =DLookUp("[supplier name]","00query1","[other number] ='6691'")
>
> but of course that is not at all what I want.
>
>
>
>
>
>
>
>