Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2007, 10:28 PM
Authorized User
 
Join Date: Dec 2006
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default Null Value

using vb.net 2003

I have an multiple column access table, and in one date column (DateIN)configured as data/time shortdate.
I have a data set and data adopter
I need to write a select command which checks if that column has no data in a row pick the other elements of that row
"Select * from tableCheckedout where BookID='" & txtBookid.text & "' AND dateDue < ' # " & mydate & " # ' and DateIN = Blank (no data)"

Can some one help me


yvk
__________________
yvk
 
Old June 21st, 2007, 04:37 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default

"Select * from tableCheckedout where BookID='" & txtBookid.text & "' AND dateDue < ' # " & mydate & " # ' and DateIN IS NULL"

Cheers,
Prabodh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Null Ignored... Why? SerranoG Access VBA 13 December 28th, 2005 12:41 PM
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 10:09 AM
Is A Null Different from Another Null ramk_1978 SQL Language 9 February 12th, 2005 03:18 PM
when to use is Null and =null and"null shoakat Classic ASP Databases 3 October 29th, 2004 01:47 AM
Not Null morpheus SQL Server 2000 12 November 20th, 2003 05:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.