确实只有3个纪录!我在查询分析器中运行这个语句,只有一条纪录!!!!
可是在ASP中用就有9条!

解决方案 »

  1.   

    数据库是一样的。
    SQl语句是:
    SqlString = "select tabMeasure.*, tabKid.KidName,tabKid.Gender, tabClass.ClassName,tabTeacher.teachername from tabKid,tabMeasure,tabClass,tabTeacher where tabClass.Gartenid = tabKid.Gartenid and tabKid.kidid = tabMeasure.kidid  and tabMeasure.KidID = '"& KidID &"' and tabTeacher.PublishID = '"& PublishID &"' order by tabMeasure.age, tabMeasure.month"
      

  2.   

    在SQL语句后加一条语句:
    response.write SqlString
    再主页中将显示的SQL语句粘贴到查询分析器中,看看结果如何。
      

  3.   

    看过了,就是所要的数据,并且数据条数也是正确的。可是放在while 循环中用的时候,就会一直循环一条记录三次!
      

  4.   

    while循环的语句是什么样的?
      

  5.   

    PrevAge = Rs("Age")
    PrevMonth = Rs("Month")
    PrevHeight = Rs("Height")
    while not Rs.Eof
    PrevAge = Rs("Age")
    PrevMonth = Rs("Month")
    PrevHeight = Rs("Height")
    wend
      

  6.   

    PrevAge = Rs("Age")
    PrevMonth = Rs("Month")
    PrevHeight = Rs("Height")
    rs.movenext
    while not Rs.Eof
    PrevAge = Rs("Age")
    PrevMonth = Rs("Month")
    PrevHeight = Rs("Height")
    rs.movenext
    wend  试一试
     
      

  7.   

    用其它循环语句重写一下,
    ASP有时会有非理性的错误
    不推荐用while...wend,因为不能跳出循环。
    用Do while ..loop,Do until...loop 较好