Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


empty value of ms access, asp, vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,53625
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> empty value of ms access, asp, vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 empty value of ms access, asp, vbscript - 11/17/2007 3:06:17 PM   
  Dilruba

 

Posts: 5
Score: 0
Joined: 11/11/2007
Status: offline
How we can recognize an empty value of ms access field.

suppose :
[CODE]Dim empVal, empVal1, num
num = 0
empVal = Recordset.Fields.Item("subj").Value
empVal1  = Recordset.Fields.Item("org").Value[/CODE]
here empVal = "" and empVal1 = "" i. e. in the database there are no value i.e. empty
so if i wrote
[CODE]If ( (empVal = "") AND (empVal = "") ) Then
num = num + 1
response.write num
response num
end if [/CODE]
here value should show "1"
But it is not entering within the if condition.
So, how can we evaluate the value of empty


 
 
Post #: 1
 
 RE: empty value of ms access, asp, vbscript - 11/17/2007 8:55:32 PM   
  ehvbs

 

Posts: 2037
Score: 48
Joined: 6/22/2005
From: Germany
Status: offline
Hi Dilruba,

use the VBScript Docs to read about IsNull().

(in reply to Dilruba)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> empty value of ms access, asp, vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts