I have an unbound form control (From Control A) that is contains a dlookup formula. The dlookup formula references a bound form control (Form Control B). When I open the form to a new record, Control Form A returns an error because Form Control B is null. Can I program Form Control A so that it returns blank instead of an error while Form Control B is null?
I have been searching for a solution for over an hour to no avail.
First, I tried NZ, because I understand NZ has a built-in "Iferror" equivalent.
Code:
NZ([Form Control A formula), "")
But that returns an #error.
I also tried a combination of IIF and Not IsError.
Code:
IIF(Not IsError([Form Control A formula], [Form Control A formula], "")
That also returns in #error. I would greatly appreciate any advice.