Solved

auto save with access 97

Posted on 1998-07-19
2
159 Views
Last Modified: 2013-11-20
I know there is a way that one can disable the autosave feature on reports, tables and forms.
i have set up command buttons to carry out these tasks but when closing down, i receive the
error "...database is either read only... cancel save? how do i disable access 97 auto save feature?
so that the only way to save is clicking on the buttons?
0
Comment
Question by:borggies
  • 2
2 Comments
 
LVL 12

Accepted Solution

by:
Trygve earned 100 total points
ID: 1319465
On a form. Have your closing button use this code.

docmd.Close acForm,"Form Name",acSaveNo

Generally it should be possible to do something like this.

In the OnError event for your form/report insert the following lines.

MsgBox(DataErr)
End

When you close down you will get the usual error messag, but also the MsgBox will tell you the corresponding error code. Then you can have code like this.

if DataErr = FoundErrorCode
  ' Don't care
  Response = False ' Don't show the message to the user.
Else
  msgbox(DataErr) ' Show other errors. This line may be commented by putting a ' in front.
End If
0
 
LVL 12

Expert Comment

by:Trygve
ID: 1319466
Have you tested the solution ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question