Connecting Tech Pros Worldwide Help | Site Map

Access unexectedly shutting down

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 07:17 AM
Bob Darlington
Guest
 
Posts: n/a
Default 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



  #2  
Old November 13th, 2005, 07:18 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

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.

  #3  
Old November 13th, 2005, 07:18 AM
Bob Darlington
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

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
<pietlinden@hotmail.com> wrote in message
news:1108095693.375669.195220@l41g2000cwc.googlegr oups.com...[color=blue]
> 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.
>[/color]


  #4  
Old November 13th, 2005, 07:18 AM
Allen Browne
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

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" <bob@dpcmanAX.com.au> wrote in message
news:420c34d8$0$5725$afc38c87@news.optusnet.com.au ...[color=blue]
> 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
> <pietlinden@hotmail.com> wrote in message
> news:1108095693.375669.195220@l41g2000cwc.googlegr oups.com...[color=green]
>> 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.[/color][/color]


  #5  
Old November 13th, 2005, 07:23 AM
Bob Darlington
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

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" <AllenBrowne@SeeSig.Invalid> wrote in message
news:420cbfff$0$25052$5a62ac22@per-qv1-newsreader-01.iinet.net.au...[color=blue]
> 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" <bob@dpcmanAX.com.au> wrote in message
> news:420c34d8$0$5725$afc38c87@news.optusnet.com.au ...[color=green]
>> 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
>> <pietlinden@hotmail.com> wrote in message
>> news:1108095693.375669.195220@l41g2000cwc.googlegr oups.com...[color=darkred]
>>> 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.[/color][/color]
>
>[/color]


  #6  
Old November 13th, 2005, 07:46 AM
WannaKatana
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

I have this happening with Access 97 sp2 as well. Also if I save a form
sometimes, Access just disappears.

Joel

  #7  
Old November 13th, 2005, 07:46 AM
Dodo2u
Guest
 
Posts: n/a
Default Re: Access unexectedly shutting down

"WannaKatana" <joel_embry@hotmail.com> wrote in
news:671dfd6e0dcadc38873e86968ad2c938@localhost.ta lkaboutdatabases.com:
[color=blue]
> I have this happening with Access 97 sp2 as well. Also if I save a form
> sometimes, Access just disappears.
>
> Joel
>
>[/color]

You should compress and restore the database at regular intervals!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.