R
rbb101
I am having trouble getting the correct syntax using DLookup as a default
value in a text box on a form.
Form Name: FrmMainInput
Unbound control Name: FunctionNumber
I am trying to get the default value to look up the FunctionNumber, using
the FunctionName from the table TblFunction. I am using the expression below
in the default value of the FunctionNumber control, but am not getting any
value.
=DLookUp("[FunctionNumber] ","TblFunction"," [FunctionName] =" &
[Forms]![FrmMainInput]![FunctionNumber] & "")
value in a text box on a form.
Form Name: FrmMainInput
Unbound control Name: FunctionNumber
I am trying to get the default value to look up the FunctionNumber, using
the FunctionName from the table TblFunction. I am using the expression below
in the default value of the FunctionNumber control, but am not getting any
value.
=DLookUp("[FunctionNumber] ","TblFunction"," [FunctionName] =" &
[Forms]![FrmMainInput]![FunctionNumber] & "")