web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : i8tNV0oEQxaKb4f9gnWWqv
Power Apps - Building Power Apps
Answered

Syntax for SQL lookup column that is NULL?

Like (0) ShareShare
ReportReport
Posted on 5 Feb 2024 17:47:36 by 194

Hi All,

I have a combobox that points to an on prem sql database table and I need to, as part of the lookup filter where the column = NULL.

 

What is the syntax? I've tried the following:

 

 

 

column = "Null"
column = "NULL"
column = null (gives error)
column = Blank()

 

 

Edit to clarify, what i'm fully trying to do is have comboboxes to filter down some choices in a lookup table in SQL. So the first combobox shows the type options, from there based on what they select the next combobox should now show me a list of make of that type. However some of them are null and if that is the case i want to hide the combobox and just have an open text field to type in.

 

The combobox visibility is what i'm trying to do, i want it to show if the first combobox selected does not have a null value for the 'make' column, otherwise hide this combobox:

Visibility = 

If(IsBlank(LookUp(Inv_Equipment_Type, EquipmentTypeID = First(Filter(Inv_Equipment_Type, EquipmentType = ComboBox1_1.Selected.Value)).EquipmentTypeID && Make = "Null")), false, true)

Essentially if there is no make to choose from hide it so i can give you the open text to type it in, otherwise show it so you can select from the make in the database.

Thanks. 

Categories:
I have the same question (0)
  • Verified answer
    Nicci Profile Picture
    194 on 05 Feb 2024 at 18:11:21
    Re: Syntax for SQL lookup column that is NULL?

    For anyone reading, I figured it out, you have to do IsBlank(COLUMNNAME). Once I changed my code to IsBlank(make) it worked!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete