Server Error on Bell Schedule page - "Operator '-' is not defined for type 'DBNull' and type 'Date'.



Cause

NULL start or end time in Bell Schedule Times (BST) record




Resolution

Update the missing time to the appropriate value or delete the BST record with the missing time 



Use the Query Change form to add the correct time:

 


Use a CHANGE command query to add the correct time:

Example:

CHANGE BST T2 TO "07:55:00" IF T2 = NULL 



Delete the record via SQL: 

Example:

UPDATE BST 
SET DEL = 1 
WHER DEL = 0 AND (T1 IS NULL OR T2 IS NULL)