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 January 5th, 2005, 06:32 PM
Registered User
 
Join Date: Dec 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checking A Value In Access DB

i have a field in MS access that doesn't have a value and the properties of the field are set as follows:

Type: Text
Required: No
Allow Zero Length: No
Indexed: No
Unicode Comprerssion: Yes

okay . . .

i'm trying to run a check against this field's value but it's not working. here's what i did:

If Not Len(myField)>0 Then
   sEE="RIGHT"
  Else
   sEE="WRONG"
  End If

I've tried every case for my If statement to do the eval and i always get "WRONG". i've used all of the following checks:

If Len(Trim(myField))<0 Then

If myField="" Then

If myField=" " Then

If myField=null Then

I've even tried to write out the value of the Len function and it give me nothing: Response.Write(Len(myField))

any ideas of why nothing's being returned?

i know it's not the db because i've checked the spelling, the connection, and all that.

 
Old January 5th, 2005, 10:47 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Did you try IsNull function?


Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access db is in use mateenmohd Access 2 June 4th, 2008 02:28 AM
Checking for duplicate primary key in Access Indo77 ASP.NET 2.0 Basics 2 November 29th, 2006 12:19 PM
Converting Access DB to Online DB eyal8r Access 5 December 6th, 2004 05:22 AM
access db to sql server db mikersantiago Classic ASP Basics 4 November 16th, 2004 03:33 AM
Checking for a entry in access aadz5 ASP.NET 1.0 and 1.1 Basics 4 November 17th, 2003 10:49 PM





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