Results 1 to 2 of 2

Thread: if statement not working??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta Canada
    Posts
    192

    if statement not working??

    Can someone explain this:
    -----------------------------------------
    CQuantity = 8
    if 4 < cQuantity then (works)
    -------------------------------------------

    'Get Record Count of This Type of Property
    set rsProp1 = server.createobject("adodb.recordset")
    rsProp1.pagesize = 1
    mysql = "select * from Property where PropTypeID="&cAccomID
    rsProp1.open mysql,cn,3,3

    response.write(rsProp1.recordcount) >> = 4

    if rsProp1.recordcount < cQuantity then (DOES NOT WORK!!!! QUANTITY IS STILL 8)

    THANKS!!

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: if statement not working??

    for starters make cQuantity and CQuantity the same case..

Posting Permissions

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



Click Here to Expand Forum to Full Width