T
Tom
I recently purchased Garry Robinson's "Microsoft Access Database Protection
and Security" book.
In his demo database -- chapter 5 -- Garry lists the form "frmAutoShutDown".
I tried to implement the Auto Shutdown form into one of my databases, but
I'm not successful w/ automatically having the mdb shut down at a specified
time.
Here's what I have done:
- Imported "frmAutoShutDown" into my database
- Changed the value for SHUTDOWNHOUR from "16" to "17".
- All other const remained the same... please see below
++++++++++++++++++++++++++++++
Const MSGMINS = 3 ' Minutes between checking for system
shutdowns
Const SHUTDOWNFLAG = True ' if true then the system will shutdown once a
day
Const SHUTDOWNHOUR = 17 ' Automatic shutdown hour (24 hour time)
Const WARNSTARTMINS = 0 ' Time in minutes that warnings start being
issued
Const WARNENDMINS = 10 ' Time in minutes that warnings stop being
issued
Const SHUTDOWNSTARTMINS = 10 ' Starting time in minutes for the shutdown
Const SHUTDOWNENDMINS = 30 ' Final time in minutes for the shutdown
++++++++++++++++++++++++++++++
I opened my database at 4:25 pm (or 16:25). I was monitoring the db for
"alert messages" from 4:30 (16:30) to 5:00 (17:00). However, none popped
up, nor did the database automatically shut down at 5:00 pm.
What am I missing?
Thanks,
Tom
BTW, I tested this on a standalone laptop. I will need to include this in
the network version. I guess this shouldn't make a difference for testing
purposes though.
and Security" book.
In his demo database -- chapter 5 -- Garry lists the form "frmAutoShutDown".
I tried to implement the Auto Shutdown form into one of my databases, but
I'm not successful w/ automatically having the mdb shut down at a specified
time.
Here's what I have done:
- Imported "frmAutoShutDown" into my database
- Changed the value for SHUTDOWNHOUR from "16" to "17".
- All other const remained the same... please see below
++++++++++++++++++++++++++++++
Const MSGMINS = 3 ' Minutes between checking for system
shutdowns
Const SHUTDOWNFLAG = True ' if true then the system will shutdown once a
day
Const SHUTDOWNHOUR = 17 ' Automatic shutdown hour (24 hour time)
Const WARNSTARTMINS = 0 ' Time in minutes that warnings start being
issued
Const WARNENDMINS = 10 ' Time in minutes that warnings stop being
issued
Const SHUTDOWNSTARTMINS = 10 ' Starting time in minutes for the shutdown
Const SHUTDOWNENDMINS = 30 ' Final time in minutes for the shutdown
++++++++++++++++++++++++++++++
I opened my database at 4:25 pm (or 16:25). I was monitoring the db for
"alert messages" from 4:30 (16:30) to 5:00 (17:00). However, none popped
up, nor did the database automatically shut down at 5:00 pm.
What am I missing?
Thanks,
Tom
BTW, I tested this on a standalone laptop. I will need to include this in
the network version. I guess this shouldn't make a difference for testing
purposes though.