
Originally Posted by
Lily21
I Tried DLookUp
DLookUp("Supplier","Table_FPS","Service =" & [Service] AND "Poste =" & [Poste])
But it return this : #Error
You cannot just mix text with fields? You need to concatenate them.
Code:
DLookUp("Supplier","Table_FPS","Service =" & [Service] & " AND Poste = " & [Poste])
and that assumes both are numeric?
If not, the fields need to be surrounded(normally by single quotes ')
I tend to put the criteria into a string variable and then you can debug.print it to check it is correct.?
Even if just the control source, then you need to test.?