Solved One Or All Data If Null (1 Viewer)

Hulk009

New member
Local time
Today, 07:46
Joined
Jun 8, 2024
Messages
9
Hello
I want to write criteria in the query that give me the result of a specified grade (1 - 2 - 3) when i select it from "Combo1" in the form "A" Or if i didn't choose any grade it will give me all the data.
I try this one but didn't get the result that i want:
[Forms]![A]![Combo1] Or Like ("*")

please i attached the Db so any help!
 

Attachments

SQL:
WHERE
    Grade = Forms.A.Combo1
         OR
    Forms.A.Combo1 Is Null
The records displayed are those where the filter criterion evaluates to True.
I answer in SQL because a query is passed to the DB machine as SQL and executed there as such.
 
SQL:
WHERE
    Grade = Forms.A.Combo1
         OR
    Forms.A.Combo1 Is Null
The records displayed are those where the filter criterion evaluates to True.
I answer in SQL because a query is passed to the DB machine as SQL and executed there as such.
i try it no result when Is Null because all data are not null so i wouldn't get all data like i want
 
The error is not in the suggestion, but in your implementation.
 
Or politely, show us your query, because what Ebs suggested should definitely work.
 
Last edited:
maybe i didn't understand how to do it. can you try it on the database and attached it. PLEASE
 

Users who are viewing this thread

Back
Top Bottom