Solved

auto save with access 97

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now