>>I think you should use code references to search for every place where there is a reference to date(), then see where it would be appropriate to use a User Defined Function instead.
>
>That would be a good idea, but there are serveral hundered thousand lines of code.
>Thanks!
You could use a global (yecch) variable... and replace date() with gnFutureDays+date() everywhere. Then for testing set gnFutureDays to 2300 or whatever number of days, and for production set it to zero.