I am working with a sql table that contains times of transports. I want to compare each record with the previous record to see if it occured with 30 minutes. I have the times coverted to seconds and have created a variable to examine the previous record against the present record. It appears to be carrying the values over from the previous evaluation (present time - previous time). I need to set it to back to zero after it does the evalutation or store the current pickup time of the present record in order to evaluate it against the next record. How do I do this?