No save dialogue after modifying db objects

P

Peter Stone

Access 2003 WinXP Pro

In the middle of a session my database has suddenly stopped asking if I wish
to save changes after I have modified Queries, Forms, etc. I ran detect and
repair, but no go. I looked in Tools/Options, but found nothing that seemed
to be causing this behavior. Any suggestions please!

Thank you.

Peter
 
D

Dirk Goldgar

Peter Stone said:
Access 2003 WinXP Pro

In the middle of a session my database has suddenly stopped asking if I
wish
to save changes after I have modified Queries, Forms, etc. I ran detect
and
repair, but no go. I looked in Tools/Options, but found nothing that
seemed
to be causing this behavior. Any suggestions please!


Do you by any chance have code that was executed that uses the statement,

DoCmd.SetWarnings False

? If so, and if somehow you managed -- possibly due to an error
occurring -- not to turn the warnings on again by executing

DoCmd.SetWarnings True

then you'll get this behavior. Any time you turn off warnings, you need to
make sure that you have error-handling in place that ensures that the
warnings always get turned on again, no matter what happens.
 
P

Peter Stone

Thanks Dirk
No I didn't have that code. Just in case, I ran DoCmd.SetWarnings True on a
form, but it didn't help.
 
G

Gina Whipp

Peter,

Oddly, enough I get this from time to time... I run Compact & Repair and
then close Access and restart and all is well. I wish I could tell you why
this works but it just does... for me anyway.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
D

Dirk Goldgar

Peter Stone said:
Thanks Dirk
No I didn't have that code. Just in case, I ran DoCmd.SetWarnings True on
a
form, but it didn't help.


Hmm. And you have the Tools -> Options... -> Edit/Find -> Confirm options
all checked?

I'm puzzled. I suppose it could be some form of corruption, but I don't
want to jump to that conclusion. What happens if you create a new blank
database and import all the objects from the original. Does the new
database behave the same way?
 
P

Peter Stone

Interesting. The problem fixed itself when I restarted the computer.

Because I'm making frequent changes, I make regular backups. My last two
backups from yesterday were exhibiting the same problem. The first backup
from yesterday was OK. When I restarted all versions were OK. Who knows!

By the way, tools options etc. etc. were all checked.

Thanks

Peter
 
P

Peter Stone

Hello Gina
Interestingly running compact and repair and restarting Access wasn't
sufficient. It was only when I restarted the computer that it fixed itself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top