0

Below expression is not working

Function FindLabel ( [NameEnglish], [Remarks], [FacilityType] )
 namh = ""
 rems = ""
 fact = "" 
 if not isnull ( [NameEnglish] ) then
 namh = [NameEnglish]
 elseif not isnull ( [Remarks] ) or (([Remarks]) <> "") then
 rems = [Remarks]
 elseif not isnull ( [FacilityType] ) then
 fact = [FacilityType]
 end if
 FindLabel = namh & " " & rems & " " & fact
End Function

I want to fulfill condition when Remarks is NULL & Remarks having "" means blank

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Sep 29, 2016 at 4:15
4
  • Python works better with null values, use [field] == None for this condition. Commented Sep 29, 2016 at 4:23
  • Can you please give me full expression in Python Commented Sep 29, 2016 at 4:31
  • What happens when you use that code? Are there errors, or nothing appears, or everything appears? Commented Sep 29, 2016 at 4:39
  • Other values appears but where Remarks is blank nothing appears Commented Sep 29, 2016 at 5:22

1 Answer 1

2

change the or to an and

elseif (not isnull ([Remarks])) and ([Remarks] <> "") then
answered Sep 29, 2016 at 4:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.