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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Global Do NOT save / change a database until user approves



 
 
Thread Tools Display Modes
  #1  
Old September 21st, 2004, 04:17 PM
Glenda
external usenet poster
 
Posts: n/a
Default Global Do NOT save / change a database until user approves

I would like to know if there is a Global method - similar to Excel, Word,
etc. that will ask the user: "Do you want to save changes?"... so that the
database won't change unless approved by the user.
--
Glenda
  #2  
Old September 22nd, 2004, 12:12 AM
Rick Brandt
external usenet poster
 
Posts: n/a
Default

"Glenda" wrote in message
...
I would like to know if there is a Global method - similar to Excel, Word,
etc. that will ask the user: "Do you want to save changes?"... so that the
database won't change unless approved by the user.


No.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #3  
Old September 22nd, 2004, 02:36 PM
Rick Brandt
external usenet poster
 
Posts: n/a
Default

"Rick Brandt" wrote in message
...
"Glenda" wrote in message
...
I would like to know if there is a Global method - similar to Excel,

Word,
etc. that will ask the user: "Do you want to save changes?"... so that

the
database won't change unless approved by the user.


No.


I just thought I should expand on this response.

With Word or Excel the entire file is loaded into RAM when you open it so
it is easy for you to make extensive changes (all in RAM) and then be asked
to save when you are closing the file. An Access file is NOT loaded
completely into memory. Bits are retrieved from disk when required and
they are written back to disk as soon as is practical.

This is for two reasons. One, an MDB file can easily become large enough
that you would never want to load the entire thing into memory even if you
could, and second is concurrency issues.

Access out-of-the-box is set up assuming multiple users might be accessing
the data at the same time. If a user worked with the entirety of the
database in memory and only committed the changes to disk when closing the
file this would be all well and good if no one else also was using the
file. As it is Access has to deal with the possibility of multiple users
trying to work with the same data.

The record locking scheme used has to make compromises between denying
access to records that others are using or having to deal with possible
conflicts if it allows them both to have the data. This is a thorny enough
issue at the record or page level, so you can imagine what a nightmare it
would be if the entire database had to be either locked or reconciled when
multiple users committed their changes.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #4  
Old September 22nd, 2004, 03:48 PM
Jamie Collins
external usenet poster
 
Posts: n/a
Default

Glenda wrote ...

I would like to know if there is a Global method - similar to Excel, Word,
etc. that will ask the user: "Do you want to save changes?"... so that the
database won't change unless approved by the user.


At the start of the session, begin a transaction. At the end of the
session, show you "Do you want..?" message and either commit or
rollback your transaction as appropriate.

Jamie.

--
  #5  
Old September 23rd, 2004, 09:11 AM
Jamie Collins
external usenet poster
 
Posts: n/a
Default

"Rick Brandt" wrote

With Word or Excel the entire file is loaded into RAM when you open it so
it is easy for you to make extensive changes (all in RAM) and then be asked
to save when you are closing the file.


When you open an Excel .xls file, a copy is made in the same folder as
the original (this is why it is not a good idea to work on an Excel
workbook from a floppy disk e.g. there may not be enough space for a
copy to be made). The original is flagged as read only. If the user
does not save their work, the copy is removed.

Jamie.

--
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two versions again-language issue Otto Setup, Installing & Configuration 3 May 28th, 2004 04:57 AM
Mial merge data base problems Rachael Mailmerge 16 May 21st, 2004 06:22 PM
how to prompt for action when user clicks save Frank Kabel Worksheet Functions 0 February 20th, 2004 08:31 PM
how to prompt for action when user clicks save Mark Worksheet Functions 0 February 20th, 2004 08:16 PM
Macro to save data to database without user intervention GOT Worksheet Functions 0 October 27th, 2003 02:30 PM


All times are GMT +1. The time now is 01:01 PM.


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