P
Pam
I'm trying to debug a dlookup problem, and can't find the
problem. I'm hoping someone here can see what I'm missing.
TIA for any help.
In using the immediate window to debug:
? Forms![time input form]![time subform1]!cont_numb
102-E
The above is correct.
? DLookUp("[piece_rate]","[CONTRACT]","[cont_numb]='102-
E'")
1.5
The above is correct, too.
But, when I put it all together as shown below, it returns
Null...why???
? DLookUp("[piece_rate]","[CONTRACT]","[cont_numb]= ' "
& Forms![time input form]![time subform1]!cont_numb
& " ' ")
Null
problem. I'm hoping someone here can see what I'm missing.
TIA for any help.
In using the immediate window to debug:
? Forms![time input form]![time subform1]!cont_numb
102-E
The above is correct.
? DLookUp("[piece_rate]","[CONTRACT]","[cont_numb]='102-
E'")
1.5
The above is correct, too.
But, when I put it all together as shown below, it returns
Null...why???
? DLookUp("[piece_rate]","[CONTRACT]","[cont_numb]= ' "
& Forms![time input form]![time subform1]!cont_numb
& " ' ")
Null