473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

SQL statement query help with Date

Hi, i searched around but didnt find exactly what I was looking for. I leave it to you SQL experts!

Seriously though, i have a field in one of my DB tables that is CompletionDate.


If there is a date in there, i dont care from the query's perspective, i only care if there is a NULL value. I am using this DB to track requirements.

I tried the following but it threw an error

SELECT IttNumber, IttTitle, DateRequired, CompletionDate
FROM tbl3215
WHERE (CompletionDate = 'NULL')

i have also tried WHERE (CompletionDate < $TODAY)

but that didnt work either, Basically, what i want to do is run a query against all requirements that are not completed.

Can anyone help?? Thanks in advance!

J
Aug 1 '07 #1
3 1248
Hi, i searched around but didnt find exactly what I was looking for. I leave it to you SQL experts!

Seriously though, i have a field in one of my DB tables that is CompletionDate.


If there is a date in there, i dont care from the query's perspective, i only care if there is a NULL value. I am using this DB to track requirements.

I tried the following but it threw an error

SELECT IttNumber, IttTitle, DateRequired, CompletionDate
FROM tbl3215
WHERE (CompletionDate = 'NULL')

i have also tried WHERE (CompletionDate < $TODAY)

but that didnt work either, Basically, what i want to do is run a query against all requirements that are not completed.

Can anyone help?? Thanks in advance!

J
I got it, hope this helps someone in the future

SELECT IttNumber, IttTitle, DateRequired, CompletionDate
FROM tbl3215
WHERE ([CompletionDate] is NULL)
Aug 1 '07 #2
Try just

Where Completion Date is null
Aug 1 '07 #3
patjones
931 Expert 512MB
Hi!

I am currently working with null date values in my project also, and this is the SQL syntax that seems to work. Give it a shot...

SELECT IttNumber, IttTitle, DateRequired, CompletionDate

FROM tbl3215

WHERE ((tbl3215.CompletionDate) Is Null)

Let us know what happens!

Best,

Pat
Aug 9 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: mark | last post by:
Access 2000: I creating a report that has a record source built by the user who selects the WHERE values. An example is: SELECT * FROM CHARGELOG WHERE STDATE Between #10/27/2003# And...
4
by: Polly | last post by:
I had a macro that ran a parameter query and created and opened an Excel file with the system date as part of the file name, but I had to change the file name by hand. So I converted the macro to...
5
by: m_t_hill | last post by:
Running MS Access 2000 MS Windows XP Pro This has caused me a lot of hair loss in the last few days so would appreciate any help. I am running code to append/update a local access database...
3
by: Andy_Khosravi | last post by:
I have been trying to build a user friendly search engine for a small database I have created. I'm having some particular problems with one of my date fields. Here's the setup: I'm using...
14
by: Siv | last post by:
Hi, I just discovered that if in an ADO.NET query I use: "Select * from Invoices Where InvoiceDate BETWEEN StartDate AND EndDate;" In this case StartDate would be 1st of month and EndDate...
6
by: Twobridge | last post by:
I hope someone can help me out with my problem. I have found a sql statement that basically pulls all bills filed within a certain time period and the payments made on those bills with in the...
1
by: Matt | last post by:
I am writing a DELETE statement and I want to filter the records using another SELECT statement. My SELECT statement is a GROUP BY query that grabs all social security numbers from the "Data...
2
by: execworks | last post by:
I would appreciate help with the following Function. The SQL statement below returns a Recordcount = 0, yet, when it runs in the query designer it returns the correct count of 40 Private...
3
by: Joshepmichel | last post by:
Please to help me to following problem I want to do this 1. create Table Name MEMBER on the Database Name "mytestdb", 2. Add the Values to the Table through the Key board Inputs during running...
0
by: angi35 | last post by:
In Access 2000, I'm trying to create a couple reports but can't figure out the queries. 1. In a form, I have a control with a dollar amount, with the source field . Then there's an option group...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.