Do While Not 内的循环取值怎么取不到第一条?
沧海小鱼 2007-12-26 03:42:05 代码
Set RsRight=server.CreateObject("ADODB.Recordset")
sqlR="Select Top 10 * From Commercial_Eocol Where Yqr_commAuthorship=1 Order By Yqr_commTime Desc"
RsRight.open sqlR,conn,1,1
If Not(RsRight.Eof And RsRight.Bof ) Then
Do While Not RsRight.Eof
Right_userID=RsRight("Yqr_userID")
Call Orig_User(Right_userID)'取出Right_userID对应的用户名
问题就在这个Call Orig_User(Right_userID) 比如上面有8条记录,可是Call Orig_User(Right_userID)却只执行了7此,最后对应的那条记录却取出来?
怎么做呢?