Sep 07 2022 10:54 AM - edited Sep 07 2022 11:43 AM
Hi all,
I have Office 2010 and use Access for hobby use.
Lately, the database is crashing when I click on the screen header and select Design View from a Form View.
I have attempted to -
Compact and Repair the database (no improvement)
Uninstalled Office 2010 and re-installed and updated (no improvement)
Checked previous dbs known to be free of the problem (no improvement)
Installed update 2553385 as recommended by Microsoft (no improvement)
The crash always leaves the .laccdb open which stops re-opening the db without first removing the file using Task Manager.
I do a lot of work on the db in my retirement, for my personal use (Garden related application) and it is a main hobby which keeps me sane and brain cells occupied.
Has anyone got a solution for this problem? I would really appreciate any assistance.
Dave Eyley
Sep 08 2022 12:08 AM - edited Sep 08 2022 01:35 AM
Hi,
To clarify the scope of the problem:
1. Does the crash happen only with a particular form in your db?
2. With all forms in this db?
3. With a new form in a newly created db?
Servus
Karl
Access News
Access DevCon
Sep 08 2022 02:11 AM
Sep 08 2022 03:05 AM - edited Sep 08 2022 06:04 AM
Hi Dave,
How about question No 3?
With some testing of a new db you might be able to determine if it is a system problem or a corruption in the particular db.
Did you already try the usual things with corrupt dbs?
a) create a new accdb and import all objects from the old db
and/or
b) the decompile command line switch, e.g. with a shortcut and a target path like
"c:\AccessPath\msaccess.exe" /decompile "c:\YourApplicationPath\Your.accdb"
Servus
Karl
Access News
Access DevCon
Sep 08 2022 06:40 AM
Sep 08 2022 07:36 AM
Hi Dave,
If you can narrow it down to one or a few problematic forms, then you have at least 3 options:
'export
Application.SaveAsText acForm, "MyForm", "c:\MyForm.txt"
'import
Application.LoadFromText acForm, "MyForm", "c:\MyForm.txt"
Servus
Karl
Access News
Access DevCon
Sep 08 2022 08:02 AM
Sep 08 2022 09:40 AM
Hi Dave,
My example path might not have been the best example. 😉
The root folder of c: by default is forbidden in Windows. Instead use any drive/path you are allowed to use in your system or e.g. the same path as the db with:
Application.SaveAsText acForm, "MainOptions", CurrentProject.Path & "\MainOptions.txt"
Servus
Karl
Access News
Access DevCon
Sep 09 2022 03:25 AM
Sep 09 2022 05:24 AM
Hi Dave,
Just to explain the text export:
With reports it is really sometimes about seeing stored printer setup garbage there and deleting it. With forms, on the other hand, it's hardly ever about reading the text dump. Usually you don't see anything special there and that's good. It's mostly about text export + delete/compact + text reimport to clean up the binary lump in the system table where Access stores these objects.
Servus
Karl
Access News
Access DevCon
Sep 10 2022 10:54 AM
Sep 11 2022 08:18 AM
Sep 12 2022 02:05 AM
Hi,
Instead of doing this for every single object in a db I would recommend you a tool that does this for you: https://team-moeller.de/en/?Add-Ins:TM_Rebuild-Database
Servus
Karl
Access News
Access DevCon
Sep 13 2022 01:20 AM
Sep 14 2022 11:49 AM
Sep 18 2022 09:41 AM
Oct 01 2022 11:23 AM
Jun 03 2024 05:00 AM
Thankyou.
The last few days Access has been crashing when I go from Design View to Form View.
I have read a lot - but when I did the DISM online it has returned to normal.
For anyone else - this is the page I used.
How to use DISM to repair local image on Windows 11 | Windows Central
Everyone gets caught up with decompiling, compiling, compacting, extracting and reimporting to a blank database. Repair Office etc But when you have done all that and it still happens, then it is not the database. It is the in the Windows install.
So Thank you again. xxx