Solved "None" in query

TML15

Member
Local time
Today, 08:22
Joined
Apr 15, 2021
Messages
41
Sorry, newbie question:
I have a query that is attached to a drop down list in a form that includes the word "None".
Can I exclude "None" from the drop down menu? My ideas on how to solve this confuse "None" with Null or "0".

1620241693799.png


Thanks!
 
Hi. What is the Row Source for your dropdown? Can you add <>"None" to its criteria?
 
The Row Source is the query which has a criteria of Not is Null already
 
Unfortunately, it didn't work. Is this how you suggested I try it?

1620242848124.png
 
Yes, exactly. What does "didn't work" mean? Did you get an error message?

Technically, the criteria should be: Is Not Null, instead of Not Is Null.

Okay, I changed it to Is Not Null. Sorry, "didn't work" meant that the word "None" still appears in the drop down list.

Thanks!
 
Okay, I changed it to Is Not Null. Sorry, "didn't work" meant that the word "None" still appears in the drop down list.

Thanks!
Sounds like "None" may not be all it is. Just for fun, what do you get with using this in place of <>"None"?
Code:
Not Like "*none*"
 
Well, interesting idea...but same result. The word None is still there in the list. Could I possibly filter it out using the Properties of the Combo Box?
 
Could I possibly filter it out using the Properties of the Combo Box?
Of course, you can. But, it's very intriguing why any of the previous suggestions do not work. Are you able to share a copy of the db to show the problem? Maybe we can get to the bottom of it.
 
Put both criteria on the same line in your query.
Is Not Null And <>"None"
NOTE I haven't looked at your database
 
you can "replace" StreetTypeSym column of the query (both in qryStreetTypeNB and qryStreetTypeFilteredNB) to an expression:

Field: streetType: Nz([StreetTypeSym], "None")
Total: Group By
Criteria: <> "None"
 
Last edited:
you can "replace" StreetTypeSym column of the query (both in qryStreetTypeNB and qryStreetTypeFilteredNB) to an expression:

Field: streetType: Nz([StreetTypeSym], "None")
Total: Group By
Criteria: <> "None"


Brilliant! That works! Thanks again @arnelgp !!
 

Users who are viewing this thread

Back
Top Bottom