Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 August 4th, 2003, 03:18 PM
Authorized User
 
Join Date: Jul 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ALoPresto
Default NULL checker?

I know that to check for NULL in a SQL field, certain code is required. Is that what I am missing? And if so, does anyone know the specific code? Thanks.

I am accessing the Active Directory database, so Department is a varcharfield. Basically I want to make sure the strFilter contains a department filter. If the user doesn't input one, I want to make sure the department field is not null. So...

Code:
If InStr(1, strFilter, "department", 1) = 0 Then
    strFilter = strFilter & " AND Department <> """
End if
Andy
AIM: LoPrestoAtWork

Trusant Technologies, LLC
__________________
Andy
AIM: LoPrestoAtWork

Trusant Technologies, LLC
 
Old August 4th, 2003, 03:43 PM
Authorized User
 
Join Date: Jul 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ALoPresto
Default

Sorry, fixed the problem.

Andy
AIM: LoPrestoAtWork

Trusant Technologies, LLC





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 10:09 AM
spell checker Star007 Java GUI 0 October 26th, 2004 03:48 PM
Spell checker srotondo Access 3 October 22nd, 2004 10:53 PM
Spell Checker srotondo Classic ASP Basics 3 October 6th, 2004 08:07 PM
Spell Checker zaeem Classic ASP Basics 3 November 10th, 2003 12:01 PM





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