Solved

auto save with access 97

Posted on 1998-07-19
2
163 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

690 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