Stupid remark, probably, but can the first two and last two inputted figures not be simply compared with d.SQLDate or the settings of the Date&Time panel?
Johan Simons _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
