Forum Discussion
Tony2021
Jan 19, 2025Steel Contributor
#Error in unbound text box
Hello Experts, I am trying to display nothing instead of #Error being displayed in an unbound text box. Its only showing on the new record row. The below is not working. It still displays #Erro...
- Jan 20, 2025
Use Nz to return a non-existing value for letterOfCreditID if it is Null:
=DLookUp("Beneficiary","[tblLetterOfCredit]","[LCID]=" & Nz([letterOfCreditID],0) & "")
George_Hepworth
Jan 19, 2025Silver Contributor
Break the complex formula down and make sure each of the sub elements returns a value correctly. Then slowly add back elements one-at-a-time.
I'd start with
DLookUp("Beneficiary","[tblLetterOfCredit]","[LCID]=" & [letterOfCreditID])
Does that always return a value when used as the control source for the unbound text box?