Sorry for the confusion. The script works, but the problem is it updates all status (0,1,3,4,5) between the two dates. I want to be able to select a delivery status either (0,1,2,3,4,5) from a certain date(s), then change status to (1,2,3,4,5) from those dates. I hope this makes sense...