Phil, sorry got caught up yesterday. Put in the SQL and receiving a message saying "Syntax error in FROM clause".
Add info from another field if present field is empty
Collapse
X
-
I have however put the code in an unbound text box asand it works perfectly.Code:=IIf(Not IsNull([TenantRef]),[TenantRef],IIf(Not IsNull([FileListID]),[FileListID],Nz([AdminRef])))
I have also used same code in another unbound text box for other fields as well.
Thank you for all your help.Comment
-
I must have missed this earlier.Originally posted by GlatGlat:
I tried your Nz option however all I kept getting was #Type in my text box.
I'm confident that usingNz()should both work and give you what you asked for. Can you post your exact attempt at following the suggestion. I suspect we may be able to help you resolve it. One thing to bear in mind usingNz()is that the type of value to use if Null is important in most cases.
Now I've caught up with the rest of the posts I can see you may not be interested in following up any longer. That's fine, but if you want to see it done with justNz(), which would be quite sensible, then feel free to continue on.
I would guess you want something like :
If at least one of them is always guaranteed to be non-null then even :Code:=Nz([TenantRef],Nz([FileListID],Nz([AdminRef],'')))
Code:=Nz([TenantRef],Nz([FileListID],[AdminRef]))
Last edited by NeoPa; Jun 28 '17, 10:08 PM.Comment
Comment