P
Paul Fenton
We have an application where a certain report must be run by the
bookkeeper on the last day of the month. If that day is a Saturday,
Sunday or holiday, the report is run the next business day. This
report has to be run before anyone updates the database with any new
information on the clients.
What I want to do is, when the application is started, check to see if
today is the last day of the month and if it is, alert the user to not
do any edits until the bookkeeper prints her report. Once she prints
her report, I can set a "yes" flag in a table that it's been done and
the warning won't show up anymore. Sometime after the 1st of the
month I would set that flag back to "no".
I can probably figure out how to determine if today is the last day of
the month, but I'm not sure how to deal with the weekend/holiday issue
and the issue of Leap Years.
I could use some direction as to how to attack this problem.
Paul Fenton
bookkeeper on the last day of the month. If that day is a Saturday,
Sunday or holiday, the report is run the next business day. This
report has to be run before anyone updates the database with any new
information on the clients.
What I want to do is, when the application is started, check to see if
today is the last day of the month and if it is, alert the user to not
do any edits until the bookkeeper prints her report. Once she prints
her report, I can set a "yes" flag in a table that it's been done and
the warning won't show up anymore. Sometime after the 1st of the
month I would set that flag back to "no".
I can probably figure out how to determine if today is the last day of
the month, but I'm not sure how to deal with the weekend/holiday issue
and the issue of Leap Years.
I could use some direction as to how to attack this problem.
Paul Fenton