I am using the above functions in a report but my boss wants to be able to run this report at a specific point in time. In other words, can I hardcode a date saying that I am really running this report say on 12/31/2001 rather than today, 2/1/2002 and still use the functions above. This report uses the current date and time and computes everything in the LastYearYTD and YearToDate buckets based on the current date and time. I would like to be able to prompt for a date and have the report run based on that date and have the LastYearYTD and YearToDate buckets populated accordingly.
Bessebo
Bessebo