If Then Statements with Empty Data Cells

Results 1 to 2 of 2

Thread: If Then Statements with Empty Data Cells

  1. #1
    Join Date
    Dec 1969
    Posts
    87

    Default If Then Statements with Empty Data Cells

    I am trying to write an If Then statement for a data set that will display an image if the field is empty. The problem I have is how to write in vbscript an empty field. Below is what I have tried. I also have gotten ride of the paranthesis. I appreciate any help.<BR><BR>&#060;% If bustype = ("") Then response.write("&#060;img src=icons/unknown2.gif>")<BR>&#037;&#062;

  2. #2
    Joseph Hatcher Guest

    Default RE: If Then Statements with Empty Data Cells

    Try the following<BR><BR>&#060;% If (IsNull(bustype)) Then response.write("&#060;img src=icons/unknown2.gif>") end if&#037;&#062;<BR><BR>Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •