Introduction:
I have always found Access ability to do handle code-changes while in break mode quite astounding. However there is a very real risk of corrupt code being stored in your database when you edit code while in break mode. Access doesn't really clean up the old bits of compiled code, and sometimes it seems to get confused about which bit of pre-compiled code it should use.
If you suddenly find that your application suddenly and for no good reason starts to error on code that was previously working without a hitch, there is a good chance that a bit of spring cleaning will fix it. How to spring clean your application
Access has a command line option called /decompile. This will toss away all your compiled code (not the source code, don't worry, simply the precompiled version of the code). This is similar to the Compact And Repair removing cached versions of tables and queries, only this does it for form modules and stand-alone modules. - First ensure that all access applications are closed.
- Ensure that you have done a backup of your application.
Click Start->Run and then type: - Access 2010: C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE /decompile
Note that the path will vary depending on your OS and your version of access
- From the access window, open up your application while holding down shift.
- Alt-F11, then choose from the menu: Debug->Compile (This will compile all modules)
- You may want to finish off with a Compact and Repair, though I don't really know if its necesarry at this point.
- Close and reoopen access to turn off the decompile option.
Your application should hopefully now be ready to run "normally" again.
7 32914 NeoPa 32,556
Expert Mod 16PB
Simple, but can be very important when a database is causing trouble in a project. Thanks for this Smiley :-)
Yes, thank you for this! Very easy to understand even as a novice. Can this process do any harm to the database? I understand that I should make a backup, but what are the risks involved?
I'm considering using this method, but I'm not sure what I should be testing to ensure nothing went wrong.
Thanks again.
@NeoPa
Your welcome
@Jonnycakes
Your welcome
To the best of my knowledge the decompile is harmless.
The compact and repair has been known to sometimes cause a database to be left in a state where it can no longer be opened, allthough I can not recall if it has ever happened to me.
Smiley,
I have had the Compact and Repair hang on me before, and one time, when I ran it, it STRIPPED all off the code out of every module!! :-o Fortunately I had a backup....
However, this functiondoes appear to do different things to the database. Do you find that this also reduces the size of the final product? Or is the size difference insignificant?
I suppose it ought to reduce the size, but whether its significant or not I haven't really looked at.
NeoPa 32,556
Expert Mod 16PB
It should only make a difference if Access had previously managed to get something wrong. In that case, it would change the size to what it should have been had there been no error in the first place. How much of a difference that would make, if any, is the length of a piece of string. For those non-English out there that means it can be any length.
NeoPa 32,556
Expert Mod 16PB
This saved my life today, with a client that had a corrupted BE.
System in use continuously all through the working day and quite a lot outside of that too. I managed to get them working again within a relatively short time using this technique. Even then - most of the delay was getting them all to come out properly.
Long story short - this was a life-saver.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: ari |
last post by:
Hey all,
I was just wondering if there is a way for me to open my access application in a vb.net application and when that access application is open, to close my vb.net application?
thanks in...
|
by: lauren quantrell |
last post by:
I have an Access 2000 application and I am using ShowWindow to hide the
MS Access application window. Works fine as long as there is a popup
form open all the time. The problem is when I want to...
|
by: John Baker |
last post by:
Hi:
I have a situation where I need to programmatically open an Access application from an
Access applications on the same system. Eventually the second application will close and
return control...
|
by: ad |
last post by:
I have used Data Application Access Block2 in my web application.
Now I download the Library Data Access Application Block. and read the
document.
May be I am stupid, I can't migrate it to...
|
by: Grant |
last post by:
Hi,
I'm trying to setup a web server to host asp.net 1.1... but keep getting the
following error message:
Hopefully someone can give me some ideas on what I may need to do.
Thanks in...
|
by: dennist685 |
last post by:
I created a web project named 'Access' in C:\Inetpub\wwwroot\Access and
dropped an .mdb there.
I dragged a DetailView to the form, configured it to show two fields of a
table, and got...
|
by: Gil |
last post by:
can you set focus to the current access application through vba?
lets say i tell access to open another application and that new
application gains the focus and causes access to loose the focus....
|
by: Oldie |
last post by:
I have built an MS Access Application under MS Office XP (but I also
own MS Office 2000). I have split the application in the pure database
tables and all the queries, forms, reports and macro's.
...
|
by: Steve |
last post by:
I have zero experience with ODBC. If I have an Access frontend connected to
a SQL Database using ODBC, are the tables connected like a frontend/backend
Access database where the the tables you see...
|
by: WackoZacho |
last post by:
I've tried searching on Google and for other questions similar to mine, but all I get are results on how to use the LostFocus event or Deactivate, etc., but I'm under the impression each of these...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |