473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Prompt to Save?

Hi,

I have noticed that when i am editing an object within my database, specifically a query and click to close it, it doesn't prompt me to save the changes and does it automatically. There have been cases where i do not want to save the changes and just wanted to know if there was a simple setting to turn off automatic saves??

Thanks

James
Feb 1 '08 #1
5 5549
JustJim
407 Expert 256MB
Hi,

I have noticed that when i am editing an object within my database, specifically a query and click to close it, it doesn't prompt me to save the changes and does it automatically. There have been cases where i do not want to save the changes and just wanted to know if there was a simple setting to turn off automatic saves??

Thanks

James
Hi James,

What version of Access are you using? My experience is that whenever you make a change to anything within Access and go to close it, you are asked if you want to save changes. Sometimes annoyingly so!

Jim
Feb 1 '08 #2
Hi Jim,

I am using version 2003.

The problem is, when i amend data in a table (maybe for test reasons) or edit the SQL within a query and go to close it it saves my changes automatically, even though i didn't want to save......very annoying also! :O)

Thanks
Feb 1 '08 #3
jaxjagfan
254 Expert 100+
Make sure if any of your processes are using

Docmd.Setwarnings False

That at the end of the process you include

Docmd.Setwarnings True

Otherwise all warnings for data changes and object changes are turned off and are automatic.
Feb 1 '08 #4
missinglinq
3,532 Expert 2GB
You should always use Docmd.Setwarnings False and
Docmd.Setwarnings True in dandem, of course, but be aware: If your code bombs between the two, Access will be left with Docmd.Setwarnings False in place! So anytime you use them in a sub, you should include Docmd.Setwarnings True in your error handling routine.

Welcome to TheScripts!

Linq ;0)>
Feb 1 '08 #5
JustJim
407 Expert 256MB
Both >4 and >5 are correct and good advice. I would also add that I habitually insert
Expand|Select|Wrap|Line Numbers
  1. CleanUpAndLeave:
  2. DoCmd.SetWarnings = True
  3. DoCmd.HourGlass = False
  4. Set (any databases, connections, recordsets etc) = Nothing
  5. Exit Sub
into any sub I write with more than about 5 lines... and before any Error Handler I use.

I don't think this answers your main question though. Any time you make a change to an object, Access should be asking you if you want to save changes when you close that object.

Except when you change data in a table, either directly or via a query or form (which would be based on a table or query anyway). That does get saved automatically*. As my mate Bill Gates used to say "That's not a bug, it's a feature"

Jim

* but that can also be intercepted programatically.
Feb 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Xavier Osa | last post by:
Hi, I have an ASP.Net web page that you can download a file. As Fergunson's problem, it prompts twice dialog boxes only if I select Open button. If I select Save button, it prompts once. I'm...
3
by: Weston Weems | last post by:
Ok, I've posted on this before, lemme give you guys the run down. I've got an asp form that has postbacks etc. I'd like it so that when navigating away from it, It'll prompt user for save...
5
by: GRB | last post by:
I'm using VB.Net 2003 to build a web page. I need to prompt the client for a name in order to save a list. I used the following code to btnSaveList.Attributes.Add("onclick", "var listname =...
4
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you...
1
by: Rob Nicholson | last post by:
I've managed to write an ASP.NET v2 web page where the prompt to save the password doesn't appear :-( Not sure why it's not working. Autocomplete on the text boxes is working but when you enter...
1
by: Tim Golden | last post by:
Ty hensons wrote: (Trying to be helpful here...) What do mean by "save" and what do you mean by "command prompt screen"? And, especially, what platform are you running on? TJG
1
by: ramprakashjava | last post by:
hi , i hav this error while running this customerDetails.jsp <html:html> <head> <html:base/> </head> <body> <html:errors/> <html:form...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.