preventing entry into db (1 Viewer)

MICHELE

Registered User.
Local time
Today, 09:02
Joined
Jul 6, 2000
Messages
117
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?
 

Users who are viewing this thread

Top Bottom