A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do i set notification of changes to a database



 
 
Thread Tools Display Modes
  #1  
Old November 28th, 2008, 05:25 AM posted to microsoft.public.access.tablesdbdesign
zolono
external usenet poster
 
Posts: 1
Default How do i set notification of changes to a database

Hi ...

I have got a database that several users work on. I want to know how do i
set an option that appears a confirmation massage upon attempting to save/do
any changes on current record before seving them - like "Are you sure you
want to save changes to this record?"

any thoughts !
  #2  
Old November 28th, 2008, 05:28 PM posted to microsoft.public.access.tablesdbdesign
tina
external usenet poster
 
Posts: 1,997
Default How do i set notification of changes to a database

put some code in the form's BeforeUpdate event procedure, as

If MsgBox("Are you sure you want to save " _
& "changes to this record?", _
vbYesNo + vbDefaultButton2) = vbNo Then
Cancel = True
MsgBox "Changes NOT saved."
End If

the default button in the messagebox is the No button - so if the user hits
Enter without reading the question and/or deliberately choosing the
appropriate response, the edits will not be saved. (i often set up critical
points of "user decision-making" to default to "nothing is changed", because
many users habitually Enter through message boxes without reading them.) in
the above code, the update is simply stopped, and nothing else. if you want
the edits *removed* and the original data restored, automatically, then add
the following line directly AFTER the Cancel = True line, as

Me.Undo

hth


"zolono" wrote in message
...
Hi ...

I have got a database that several users work on. I want to know how do i
set an option that appears a confirmation massage upon attempting to

save/do
any changes on current record before seving them - like "Are you sure you
want to save changes to this record?"

any thoughts !



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.