it seems that the if statement is killing my loop, no matter what kind of loop i do, it dies and errors.Code:Do if DateDiff("d",Date(),objRS("start_date")) >= 0 then if DateDiff("d",Date(),objRS("start_date")) = 0 then Response.Write("TODAY") else if DateDiff("d",Date(),objRS("start_date")) <= 5 then Response.Write("SOON") if DateDiff("d",Date(),objRS("start_date")) > 5 then Response.Write("GOT A WHILE") end if end if objRS.MoveNext Loop While objRS.EOF
can someone explain to me why?




Reply With Quote