Thanks very much for the replies, guys. My version is "4.1.7-max".
The error message I get is: -- Error Executing Database Query.
Syntax error or access violation: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' deadline)'Difference', tasks.leadtime, tasks.lead_time_type_id, leadtime_' at line 1
--
I changed GETDATE() to CURDATE() but it still gives me the same error. Thanks for the suggestion anyway, Roger.
Best regards, CK.
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]