Error on close

T

Tony Williams

Every time I close my database (Access 2007) I get an error message to say
that Access has encountered an error and needs to send an error report. I've
compacted and repaired the database but it still happens. Anyone any ideas
where I can start looking for the error that's creating this?
Thanks
Tony
 
P

Pete D.

Try creating a simple database with a few items in it like table, form.
Open it and close it a few times. If it closes without the error you now
know it is your datafile. Next in your datafile with the error check and
see if before you close it all forms are closed and no code is running. Do
you have any objects running code that runs when it closes. Do you have
compact on close turned on, if so turn it off. Do you have Name Autocorrect
options turned on under access options current database? If so turn it off
and try again.
 
T

Tony Williams

Thanks Pete I'll try those.
Tony
Pete D. said:
Try creating a simple database with a few items in it like table, form.
Open it and close it a few times. If it closes without the error you now
know it is your datafile. Next in your datafile with the error check and
see if before you close it all forms are closed and no code is running.
Do you have any objects running code that runs when it closes. Do you
have compact on close turned on, if so turn it off. Do you have Name
Autocorrect options turned on under access options current database? If
so turn it off and try again.
 
T

Tony Williams

Tried all those things Pete but still the same. Also just opened it in
Access 2003 and then closed it with no problems. So there must be something
that Access 2007 doesn't like. the database was created originally in 2003.
Odd?
Thanks
Tony
 
R

RoyVidar

Tony said:
Every time I close my database (Access 2007) I get an error message
to say that Access has encountered an error and needs to send an
error report. I've compacted and repaired the database but it still
happens. Anyone any ideas where I can start looking for the error
that's creating this?
Thanks
Tony

I'm thinking some kind of corruption, which I also have !some fun
with using that version.

You might want to try the /decompiel switch. If you're unfamiliar
with it, follow the steps in the following link

http://www.granite.ab.ca/access/decompile.htm

note - between step 2 and 3, close Access again, and reopen the file
again - without running any code (holding Shift key).

If that doesn't work, then try the SaveAsText and LoadFromText methods
that you will probably find samples of through a search in some of
these groups.
 
T

Tony Williams

Thanks Roy that sounds a bit scary for a novice but I'll have a go.
Cheers
Tony
 
P

Pete D.

Do you have SR1 installed?
Tony Williams said:
Tried all those things Pete but still the same. Also just opened it in
Access 2003 and then closed it with no problems. So there must be
something that Access 2007 doesn't like. the database was created
originally in 2003. Odd?
Thanks
Tony
 
A

a a r o n . k e m p f

wow dude, that sounds to me like Jet is screwing up your data.

I'd reccomend moving to SQL Server.
If Jet bluescreens once in a hundreds years; it's just not worth it.

Use a reliable database.

SQL Server is the worlds most popular database.
And you can still use the same forms and reports-- using Access Data
Projects.

-Aaron
MCITP: DBA SQL 2005
 
T

Tony Toews [MVP]

Tony Williams said:
Thanks Roy that sounds a bit scary for a novice but I'll have a go.

So long as you make a copy of the FE first decompile is quite safe to
use.

Please ignore anything Aaron Kempf has to say as he is a monomaniacal
on various subjects which are usually utterly irrelevant to the
question or problem at hand.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
T

Tony Williams

Thanks Tony
Tony Toews said:
So long as you make a copy of the FE first decompile is quite safe to
use.

Please ignore anything Aaron Kempf has to say as he is a monomaniacal
on various subjects which are usually utterly irrelevant to the
question or problem at hand.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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