Date on query

moi

Member
Local time
Today, 23:41
Joined
Jan 10, 2024
Messages
235
Hello all,

How to filter (date field) blank/no value of a query.. "IsNotNull" is not working..

I wanted to show only records with value (date).

Thank you.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 16:41
Joined
Feb 19, 2013
Messages
16,668
Show your code since what you show is not valid
 
  • Like
Reactions: moi

ebs17

Well-known member
Local time
Today, 17:41
Joined
Feb 7, 2020
Messages
1,982
Code:
WHERE DateField > 0
In contrast to the suggestion with NOT, index use is possible here, and index use should always be kept as open as possible in the interest of good performance.
0 corresponds to 1899-12-30 and implies that dates used are greater than this date.
 

Users who are viewing this thread

Top Bottom