473,395 Members | 1,341 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,395 software developers and data experts.

Access unexectedly shutting down

Using Access 2002, the application frequently shuts down with no warning
when I use the toolbar buttons to switch between Form and Design views for
forms.
I have no opportunity to save design changes, and it can happen on any form.

Has anyone else experienced this annoying problem? Any solutions?

--
Bob Darlington
Brisbane
Nov 13 '05 #1
6 1552
did you run a compact/repair? Sounds like corruption in your form to
me. That said, I have never had what you describe happen to me. But
corrupt objects will cause this kind of totally bizarre behavior.

Nov 13 '05 #2
Thanks Pieter,
Yes, I ran c/r and decomp, but to no avail.
It doesn't seem to be particular about which form is open. But I guess it
could still be some other object which is corrupt.
I'll try importing all into a new db (when I can).

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
did you run a compact/repair? Sounds like corruption in your form to
me. That said, I have never had what you describe happen to me. But
corrupt objects will cause this kind of totally bizarre behavior.

Nov 13 '05 #3
Hi Bob

It probably is a corruption, and there are at least 3 things that can cause
this.

1. The first is Name AutoCorrect. Make sure you uncheck those boxes under:
Tools | Options | General
Then compact the database again.
Explanation of why:
http://members.iinet.net.au/~allenbrowne/bug-03.html

2. If the form has a subform, the next thing to try is to open the subform
in design view, and add a text box for the foreign key field, i.e. the one
names in the LinkChildFields property. There seems to be a bug in A2002 and
A2003 where it crashes if this property refers to an AcessField, and you can
work around the bug by placing a text box on the form so it refers to a
Textbox type object instead.

3. The other likely cause is a corruption where the compiled code is out of
sync with the text version. Decompile a copy of the database by entering
something like this at the command prompt while Access is not running. It is
all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
Then compact again.

If that still doesn't work, create the new mdb and make sure Name
AutoCorrect is off in the new one before you import everything.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:42**********************@news.optusnet.com.au ...
Thanks Pieter,
Yes, I ran c/r and decomp, but to no avail.
It doesn't seem to be particular about which form is open. But I guess it
could still be some other object which is corrupt.
I'll try importing all into a new db (when I can).

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
did you run a compact/repair? Sounds like corruption in your form to
me. That said, I have never had what you describe happen to me. But
corrupt objects will cause this kind of totally bizarre behavior.

Nov 13 '05 #4
Many thanks once again Allen.
I didn't check the auto correct thing when I upgraded from A97.
Have done now though, so I hope that will be the solution. Being an
intermittent problem, I'll need to wait and see.
Thanks again.

--
Bob Darlington
Brisbane
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:42***********************@per-qv1-newsreader-01.iinet.net.au...
Hi Bob

It probably is a corruption, and there are at least 3 things that can
cause this.

1. The first is Name AutoCorrect. Make sure you uncheck those boxes under:
Tools | Options | General
Then compact the database again.
Explanation of why:
http://members.iinet.net.au/~allenbrowne/bug-03.html

2. If the form has a subform, the next thing to try is to open the subform
in design view, and add a text box for the foreign key field, i.e. the one
names in the LinkChildFields property. There seems to be a bug in A2002
and A2003 where it crashes if this property refers to an AcessField, and
you can work around the bug by placing a text box on the form so it refers
to a Textbox type object instead.

3. The other likely cause is a corruption where the compiled code is out
of sync with the text version. Decompile a copy of the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
Then compact again.

If that still doesn't work, create the new mdb and make sure Name
AutoCorrect is off in the new one before you import everything.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:42**********************@news.optusnet.com.au ...
Thanks Pieter,
Yes, I ran c/r and decomp, but to no avail.
It doesn't seem to be particular about which form is open. But I guess it
could still be some other object which is corrupt.
I'll try importing all into a new db (when I can).

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
did you run a compact/repair? Sounds like corruption in your form to
me. That said, I have never had what you describe happen to me. But
corrupt objects will cause this kind of totally bizarre behavior.


Nov 13 '05 #5
I have this happening with Access 97 sp2 as well. Also if I save a form
sometimes, Access just disappears.

Joel

Nov 13 '05 #6
"WannaKatana" <jo********@hotmail.com> wrote in
news:67******************************@localhost.ta lkaboutdatabases.com:
I have this happening with Access 97 sp2 as well. Also if I save a form
sometimes, Access just disappears.

Joel


You should compress and restore the database at regular intervals!
Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Jesper | last post by:
Does anyone know some c++ code for shutting down windows? I want to write a program using borland c++ builder to shut down windows. --
1
by: Michelle | last post by:
Hi. I am trying to add new records to an Access 2000 database using VB6. But I keep getting this 3426 "action cancelled by object" error. I've updated DAO to 3.6 and checked MSDN. Their code...
19
by: jameso321 | last post by:
Hi, We run an MS Access 2000 DB with about 15 users. It is on a Win 2000 Server (SP4) machine and runs through Citrix Metaframe Presentation Server 3.0. --------------------------
2
by: Ken Kolda | last post by:
We're using .NET remoting hosted under IIS but we're running into problems with the server shutting down the ASP.NET worker process unexpectedly. Since I know this can occur because of the settings...
4
by: Markus Stoeger | last post by:
Hi, I have a problem with Application.Run() when Windows is shutting down. Please have a look at the copy&paste example program below. The application has no forms. It has only got a notify...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
3
by: Sidu | last post by:
Ok well i'm still very new to apache, mysql, and php.. let me explain everything i have set up.. I have installed Appserv, for those of you who are unfamiliar with it.. it installs mysql, php,...
2
by: Jack | last post by:
Sorry for the double post (also in the IIS group). We've got an ASP.Net 2.0 app running on IIS6. We kept losing sessions, and enabled health monitoring to see what was happening. This morning...
0
by: Noob | last post by:
Hello, I created an ERP based custom report using Access '03 & Excel '03. I developed an Access query that pulls the required data from the ERP (Progress) database via link tables. I use Excel...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.