Results 1 to 3 of 3
  1. #1
    mand
    Guest

    if else statement

    Can anybody see why this statement does not compare the values. it always print 'no match'. The values are stored correctly in variables.

    rs.MoveFirst
    do while Not rs.eof
    If user = record Then
    response.write("match")
    else
    response.write("no match")
    end if
    rs.MoveNext
    loop
    rs.close
    set rs = nothing

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: if else statement

    Can you provide a little more information about the procedure - such as variable types (for "user" and "record")

    Thanks

  3. #3
    mand
    Guest

    Re: if else statement

    I have changed the coding around a bit more and it seems to be ok now, thanks anyway Mark

Posting Permissions

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