Simple mind, simple question

Results 1 to 3 of 3

Thread: Simple mind, simple question

  1. #1
    ceejay Guest

    Default Simple mind, simple question

    I know this is simple but why does the following code produce "Not at this time" even when the recordset field &#039;pubDLoad&#039; is "yes"? The db connection is fine, as other records are displayed properly.<BR><BR>&#060;%<BR>If rs("pubDLoad")="yes" then<BR> response.write "Yes"<BR> Else<BR> response.write "Not at this time"<BR> End If<BR>%&#062;<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Simple mind, simple question

    Are you sure it&#039;s "yes", and not "YES", "Yes", or "YeS", or even "yes "??<BR><BR>When you use = , case sensitivity comes into play. Also, you may have a stray space... try this:<BR><BR>If Trim(LCase(rs("pudBLoad"))) = "yes" Then

  3. #3
    ceejay Guest

    Default RE: Simple mind, simple question

    desert ghost:<BR><BR>YES, it was a case problem easily fixed with your assistance.<BR>At my stage of development in this arena, I have been focused upon the lack of effect that case sensitivity usually has, and ignored the obvious.<BR><BR>THANK YOU!<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