Hi,
Wonder if i can get some help here with the syntax. The following is the code i'm trying to put into a control source of a textbox.
=iif([SubJob_Name] = "", dlookup("[Job_Name]","Job Register","[Job_ID]='" &[Job Register]![Job_ID] & "' AND [Industry_No]='"[Job Register]![Industry_No] & "' AND [Client_No]='"[Job Register]![Client_No] & "'"), [SubJob_Name])
I got an invalid syntax - you may have entered an operand without an operator. How do i add "AND" to the criteria in the dlookup?
Thank you in advance
Wonder if i can get some help here with the syntax. The following is the code i'm trying to put into a control source of a textbox.
=iif([SubJob_Name] = "", dlookup("[Job_Name]","Job Register","[Job_ID]='" &[Job Register]![Job_ID] & "' AND [Industry_No]='"[Job Register]![Industry_No] & "' AND [Client_No]='"[Job Register]![Client_No] & "'"), [SubJob_Name])
I got an invalid syntax - you may have entered an operand without an operator. How do i add "AND" to the criteria in the dlookup?
Thank you in advance