Are you making your comparison against the same data type?
If ID is long int field and facadj1 is text then that will cause an error.
=DLookUp("[facid]", "FACILITIES", "[ID] = " & [facadj1])
=DLookUp("[facid]", "Facilities", "[ID] = "...
You could use iif() to remove unwanted lines.
=iif(isnull([ADDRESS1]),"", [ADDRESS1]& vbcr) & iif(isnull([ADDRESS2]),"", [ADDRESS2]&vbcr)
Or you could use a small vba function that would be easier to read in your text box to replace the iif statement to do the same thing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.