I am trying to prevent users from entering my db after 3:00 pm. I have read some examples but I can't seem to make it work.
I have a table with 2 fields: shutdown(yes/no) and time. I also have a form that opens when my db opens and it is based on this table.
Now I'm trying to write my code and I'm not sure exactly what to write and where to put it.
I've been trying
if me.shutdown=yes then
do.cmd.quit
end if
This is working backwards-it closes when shutdown is no and how does the time work?
I have a table with 2 fields: shutdown(yes/no) and time. I also have a form that opens when my db opens and it is based on this table.
Now I'm trying to write my code and I'm not sure exactly what to write and where to put it.
I've been trying
if me.shutdown=yes then
do.cmd.quit
end if
This is working backwards-it closes when shutdown is no and how does the time work?