asp里面不能从头开始循环,只能退出。你可以改一下: Dim n: n = rsadd.RecordCount + 1Do While n >= 1 If rsadd.Eof Then rsadd.MoveFirst() Else ..... End If n = n - 1Loop