G
Guest
Okay, I use Access2002.
I need to know EXACTLY what triggers these form events:
Before Update, Before Insert, and On Dirty
let me tell you why. On a security application I'm developing, I want the
security officer to have 15 minutes in which to EDIT a new incident report.
After that, it must be edited (and deleted for that matter) by a supervisor.
What I'm trying to do is determine how to CANCEL an attempted edit once the
time-limit has expired. (I also want the code to provide a MSGBOX telling the
officer that a supervisor needs to edit, but that's trivial.)
I have a date/timestamp that I'm going to write out on the initial post of
the record. After that if they try to change anything, I DO NOT want that
operation to complete. I want it to CANCEl if they: 1) try to move to another
record, 2) try to post the edits.
So can someone please offer me some specific information? IIRC, the INSERT
event fires before/after a new record is added, and the UPDATE event fires
before/after an EDIT. But I believe the UPDATE event also fires for a new
record as well. And what about the DIRTY event? IIRC it fires the moment a
single character gets changed in the form. And what if the user attempts to
close the application? Can that get past the events in some way?
I think I have some of these answers, but would like some independent
confirmation please.
Thanks!!
I need to know EXACTLY what triggers these form events:
Before Update, Before Insert, and On Dirty
let me tell you why. On a security application I'm developing, I want the
security officer to have 15 minutes in which to EDIT a new incident report.
After that, it must be edited (and deleted for that matter) by a supervisor.
What I'm trying to do is determine how to CANCEL an attempted edit once the
time-limit has expired. (I also want the code to provide a MSGBOX telling the
officer that a supervisor needs to edit, but that's trivial.)
I have a date/timestamp that I'm going to write out on the initial post of
the record. After that if they try to change anything, I DO NOT want that
operation to complete. I want it to CANCEl if they: 1) try to move to another
record, 2) try to post the edits.
So can someone please offer me some specific information? IIRC, the INSERT
event fires before/after a new record is added, and the UPDATE event fires
before/after an EDIT. But I believe the UPDATE event also fires for a new
record as well. And what about the DIRTY event? IIRC it fires the moment a
single character gets changed in the form. And what if the user attempts to
close the application? Can that get past the events in some way?
I think I have some of these answers, but would like some independent
confirmation please.
Thanks!!