Which event to use for this?

G

Guest

I need to issue a warning message if a set of conditions apply to the current
record. I need to do this when I move off the record WHETHER OR NOT I have
made an update.
Currently, I have the code in the 'before update' event and the users are
complaining that it does not trigger when they access the record but make no
changes.
 
B

Bob Howard

Perhaps this oculd be done in whatever event you've implemented that lets
the user move to a different record.

Bob
 
G

Guest

Try the On Current event of your form. If that won't work you could try the
On Exit or On Lost Focus event of a control on your form.

HTH
 
A

Albert D. Kallal

I need to issue a warning message if a set of conditions apply to the
current
record. I need to do this when I move off the record WHETHER OR NOT I have
made an update.
Currently, I have the code in the 'before update' event and the users are
complaining that it does not trigger when they access the record but make
no
changes.

The ideal place is the before update event. If a user is just hitting the
forward arrow a few times, are you saying that for each record they scan
over, you want this message?

The only way to accomplish this is would be have your own custom buttons for
navigation. A few here have suggested the on-current event, but that event
fires when you "land" on the record, not when you try move "off" the
record....

I would suggest that you consider making a "red" box, or something else on
the screen that highlights when you move "to" the record. Moving off of a
record does not mean much if I hitting the forward record button 5
times..and I getting a bunch of messages from records I don't even care to
read, or did not change.

Further, after the message is displayed, do you want to stay on the current
record, or after we display the message, do we move on to the next record?
(in other words, if you display this message, what is supposed to happen?).

So, you mean after we display the message, do we continue to move to the
next record? Or, how do we move to the next record then?

If this is an actual condition in the record that MUST be edited BEFORE the
user moves on, then use the before update to prevent this from happening. As
for the current mess, you need to find and fix those records. Build a query
that finds these bad records, and assign someone to fix them. Once you fix
the mess then users will not be able to exit a record when they edit it the
wrong way.

It don't make a lot of sense to pop up a message when a user is simply
moving along through some records unless they made changes to that
record....
 
G

Guest

This is a ticketing system. Sometimes the agents write out a ticket
resolution but forget to close the ticket. So this is a reminder when it hits
a ticket with a resolution that is still open it just says 'do you want to
close this?"
I now have it in 'before update' and 'on current'. Let's see if they get
tired of the message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top