Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null table row, but cant get VBScript to see it???

Status
Not open for further replies.

ModicaR

Programmer
Jul 20, 2003
9
GB
Hi there,

i am trying to test if a file exists on my system, i have written all the code to deal with this and that is not the problem. What the problem is, is some products do not have files associated with them so the appropriate fields in the database are empty string values (thus = ""). However when i try to create a loop to deal with this, it never enters my loop!

Example:

Manu = RS("Manufact_Name")

if Manu = "" Then
ExistF = "F"
End If

It just does not go into the loop, even if the Manufact_Name is empty!????? i am very confused as i have tried to out the values and there is nothing, and i have set Manu to be "" and then it works!!

Please Help! it is becomming very frustrating!

Regards,

Rob


 
try
If (IsNull(Manu ) or Manu = "") then

and also test that value as
Response.Write Manu

can you post the loop you stated. maybe there's a error in it

____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
Thank for the responces it now works like a charm!!! it was a silly thing!

Thanks very much!

Roberto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top