Solved

auto save with access 97

Posted on 1998-07-19
2
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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