Although I have not dove into the logic, this could be part of your issues ...
Darrel's Code Snippet
Code:
IF Seconds = 0 AND Minutes = 0 AND Hours = 0 AND _
Seconds_Alarm_Set_Point = 0 AND _
Minutes_Alarm_Set_Point = 0 AND _
Hours_Alarm_Set_Point = 0 THEN
ELSE 'If above code is true then don't check the code below
...
Darrel's code goes to "ELSE" if any of the above are not true
Your Code Snippet
Code:
IF Seconds = 0 THEN
IF Minutes = 0 THEN
IF Hours = 0 THEN
IF Seconds_Alarm_Set_Point = 0 THEN
IF Minutes_Alarm_Set_Point = 0 THEN
IF Hours_Alarm_Set_Point = 0 then
ELSE 'If above code is true then don't check the code below
...
Yours goes to ELSE only if Hours_Alarm_Set_Point =0 is not true, otherwise they go to ENDIF and out of the massive IF-THEN jungle
Bookmarks