|
-
Aug 15th, 2012, 06:48 AM
#1
Thread Starter
Fanatic Member
where field is blank (How to do?)
Hi guys im using the following code to check the database and add the date to a listview
Set rs = db.OpenRecordset("SELECT * FROM `Leads` WHERE `Agent` = " & "'" & Form1.Text1.Text & "' AND `Calling From` = " & "'" & Form4.Combo1.Text & "' AND `Date` = '' ")
I am wondering how can i make it only display the records that have a blank Date field?
At the moment it dont show any date that has a blank date field. How can i make it display them only?
thanks
-
Aug 15th, 2012, 09:28 AM
#2
Re: where field is blank (How to do?)
How about
And Date Is Null
-
Aug 16th, 2012, 07:11 PM
#3
Frenzied Member
Re: where field is blank (How to do?)
At the moment it dont show any date that has a blank date field. How can i make it display them only?
You need to put some date inside the Date= " "
-
Aug 16th, 2012, 07:42 PM
#4
Re: where field is blank (How to do?)
 Originally Posted by firoz.raj
You need to put some date inside the Date= " "
I think that's just exactly what he doesn't want
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Aug 16th, 2012, 10:01 PM
#5
Frenzied Member
Re: where field is blank (How to do?)
I am wondering how can i make it only display the records that have a blank Date field?
oh sorry, for my previous post .just you need to check Null value in your sql statment .
Last edited by firoz.raj; Aug 16th, 2012 at 10:05 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|