HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Empty DB fields not recognised as null
Post new topic   Reply to topic    HTML Help Forum Index -> ASP
View previous topic :: View next topic  
Author Message
jim b



Joined: 12 May 2006
Posts: 14

PostPosted: Tue May 29, 2007 2:42 am     Empty DB fields not recognised as null Reply with quote

I wonder if anyone has the solution to this problem. I am querying a DB using SQL in ASP. The field is empty when looking at it through MS access, but when I use code like

<%
' DB Connection string

if RsTable1("A1") = "" Then
'do something
else
'do something else
end if
%>

I get the 'do something else lol.

Thanks
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Tue May 29, 2007 7:38 am     Reply with quote

Maybe if you tried saying if it is == "" instead of = ""
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> ASP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial