If...Then Statement with NULL

Results 1 to 2 of 2

Thread: If...Then Statement with NULL

  1. #1
    Join Date
    Dec 1969

    Default If...Then Statement with NULL

    I am having a problem using NULL in an If.. Then statement.<BR><BR>Any idea why this is not working?<BR><BR>The objRS("compname") is valid. I can do a response.write and it shows just fine.<BR><BR>When I run the code, it errors out and says "object required."<BR><BR>If objRS("compname") is NULL Then<BR>.....<BR>Else<BR>...<BR>Enf If<BR><BR>Thanks...

  2. #2
    Join Date
    Dec 1969

    Default RE: If...Then Statement with NULL

    If objRS("compname") is NULL Then<BR><BR>should be:<BR><BR>if IsNull(objRS("compname")) Then<BR>

Posting Permissions

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