Re: Adding MsgBox to a form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Wed, 16 Sep 2009 09:38:01 -0700, troublecat12
<troublecat12@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am a novice Access user. I would like to build a msgbox On Enter for a
check box field and also for a text box in my form.

The message would read,"Are you sure you want to update this field?"

What is the simplest way to do so?

Thanks,
Mary

Just one caution - Dave's BeforeUpdate code is the way to do this, but I have
to be concerned: do you WANT to do this? If users routinely get nagged by
messages like this, they'll pretty quickly tune out and just unthinkingly
click OK: "Yes, dammit, I updated it because I wanted to update it!"

Add the code if you want, but do be aware of the downside!

You may also want to modify the code to avoid the message if this is the new
record:

If Not Me.NewRecord Then
MsgBox...
End If

--

John W. Vinson [MVP]
.



Relevant Pages

  • Re: Modifying MEX arguments in place?
    ... which leads to strange behavior. ... If you can avoid it altogether, because you are sure it is never ... Modify your data at will! ...
    (comp.soft-sys.matlab)
  • Re: Avoid duplicate combinations
    ... I will receive a messge when I ... advising of the error provides no details, as I recall. ... I would rather avoid if at all possible the use of a ... Read the following and modify to meet ...
    (microsoft.public.access.forms)
  • Click to activate and use this control
    ... control (e.g., the OWC spreadsheet). ... to modify you web page to avoid this prompt. ... Has anybody using the OWC 11 spreadsheet control looked into modifying their ...
    (microsoft.public.office.developer.web.components)
  • URLConnection tricks
    ... URLConnection urlc = url.openConnection; ... How would I modify that code to avoid getting the contents of the ... file, get just the headers? ...
    (comp.lang.java.programmer)