Hi Charlie,
See attached, you will have to change the siteid reference. If the dates do not line up, try changing the number of days reference for sysdate. As I do not have access to your system, please let me know if you experience any errors.
------------------------------
Steve Norris
Cohesive
------------------------------