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

DAO; weird crash of MSAccess

Hello,

I have a whole lot of VBA DAO code in one of my databases; every so
often, Access crashes (and prompts me to backup the db, etc...)
mysteriously when I call a function (it is not the same function every
time, nor is it the same calling method e.g. button/query/manual
call).
The only way that I have found to fix it is to:
1. Enter the VB/macro editor
2. Set a breakpoint _anywhere_ in the function that I want to call
3. Run to that breakpoint and don't resume execution (stop the
function)
At that point, everything works _perfectly_ again!

Has anyone experienced similar behavior?

Thank you,
R Waters
Nov 13 '05 #1
2 1704
This kind of corruption is not uncommon when you are developing the
application, i.e. modifying the objects and their code.

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"

You may be able to reduce the frequency of corruption by following the
things in this article:
Preventing Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-25.html

--
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.

"Robert Waters" <ro******************@gmail.com> wrote in message
news:af**************************@posting.google.c om...
Hello,

I have a whole lot of VBA DAO code in one of my databases; every so
often, Access crashes (and prompts me to backup the db, etc...)
mysteriously when I call a function (it is not the same function every
time, nor is it the same calling method e.g. button/query/manual
call).
The only way that I have found to fix it is to:
1. Enter the VB/macro editor
2. Set a breakpoint _anywhere_ in the function that I want to call
3. Run to that breakpoint and don't resume execution (stop the
function)
At that point, everything works _perfectly_ again!

Has anyone experienced similar behavior?

Thank you,
R Waters

Nov 13 '05 #2
Hi Rob,

Access is funny sometimes.
I have had experience when a code module can become corrupted and creates
redherrings.
Ths has only happened on 2 occassions over years of developing.
The solution was to create a new module and copy all the code from the old
one and paste into the new one. Delete the old module, recompile, and it
removed the invisible corruption.

This may not fix you prob but worth mentioning here
regs
Tombsy

"Robert Waters" <ro******************@gmail.com> wrote in message
news:af**************************@posting.google.c om...
Hello,

I have a whole lot of VBA DAO code in one of my databases; every so
often, Access crashes (and prompts me to backup the db, etc...)
mysteriously when I call a function (it is not the same function every
time, nor is it the same calling method e.g. button/query/manual
call).
The only way that I have found to fix it is to:
1. Enter the VB/macro editor
2. Set a breakpoint _anywhere_ in the function that I want to call
3. Run to that breakpoint and don't resume execution (stop the
function)
At that point, everything works _perfectly_ again!

Has anyone experienced similar behavior?

Thank you,
R Waters

Nov 13 '05 #3

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

Similar topics

11
by: Siegfried Heintze | last post by:
Someone in the Access forum explained that I could retrieve metadata from Access with the DAO API. I specifically what to retrieve the comments for each column and table. I also want to retrieve...
1
by: Eyal | last post by:
Hi I would like to use DAO 3.6 dll for connecting to MsAccess in .net environment. I need to use that component since I have tried the other providers like ADO, AdoDB , OleDB and they...
2
by: Vladislav Moltchanov | last post by:
Recently I have changed from Acc97 to Acc2000 (I had to supply some data entry tools for field data collection for users still using Acc97). Among lot of other complications coming with Acc2000...
44
by: Greg Strong | last post by:
Hello All, Is it better to create a query in DAO where a report has 4 sub-reports each of whose record source is a query created at runtime and everything is in 1 MDB file? From what I've...
2
by: PC | last post by:
is there any way to use DAO with vb2005 it would only be for use with an MSaccess db
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
7
by: marmottedodue | last post by:
Hello, I'm trying to debug an access project in which two kind of recordset are used: ADODB.recordset and DAO.recordset. I'm trying to set the whole project on DAO.recordset, but the following...
2
by: Stick | last post by:
Some of my users are reporting a startup crash with this error: EventType : clr20r3 P1 : gaugeglow.exe P2 : 1.5.0.0 P3 : 44dda1df P4 : gaugeglow P5 : 1.5.0.0 P6 : 44dda1df P7 : 27 P8 : 0 P9 :...
1
by: benjamins | last post by:
Hi, I'm trying to populate a treeview control in msaccess with chinese characters. I'm able to have these characters appear correctly in listviews etc by allocating the data directly via the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
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,...
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...

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.