473,385 Members | 1,337 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.

Access has encountered a problem...

Lyn
From time to time I strike a problem where Access will suddenly shut down
while running some code (Dr Watson message), wiping out any forensics
(diagnostic traces such as debug.prints, etc). This is frustrating enough,
but if I step through the same code one instruction at a time, it always
functions perfectly. I have usually resolved the issue by time-consuming
trial and error, making pseudo-random code changes until I end up with
something that functions more or less as I want, but without crashing
Access.

The fact that it works when stepping through, or even by inserting a single
breakpoint, suggests that there is some sort of timing conflict, probably
with asynchronous activity taking place. I have tried inserting lengthy
delay loops at various points (to simulate the breakpoint), but this
strategy is usually unsuccessful in affecting the operation of the code
(other than to slow it down).

I am currently trying to resolve another instance of this problem, so far
without success. I will detail the current problem in a separate post, but
my question here is: is there some logical strategy for troubleshooting
this type of problem other than trial and error? How can I pinpoint the
problem code when Access crashes and leaves no trace, but works perfectly
when stepping through?

Thanks for any insight,
Lyn.
Oct 21 '07 #1
5 1894
Lyn <l.*******@iiNet.net.auwrote:
>From time to time I strike a problem where Access will suddenly shut down
while running some code (Dr Watson message), wiping out any forensics
(diagnostic traces such as debug.prints, etc).
Try logging things such as debug.print using a call to the following procedure.
Change the file name to suit your environment of course.

Sub LogToTextFile(Comment As String)

Open "Q:\1 access\Fleet Mgmt\zzz Service log.txt" For Append As #1 ' Open file
for output.
Write #1, Comment
Close #1

End Sub

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/
Oct 21 '07 #2
Lyn
On Sun, 21 Oct 2007 22:16:07 GMT, Tony Toews [MVP] wrote:
Lyn <l.*******@iiNet.net.auwrote:
>>From time to time I strike a problem where Access will suddenly shut down
while running some code (Dr Watson message), wiping out any forensics
(diagnostic traces such as debug.prints, etc).

Try logging things such as debug.print using a call to the following procedure.
Change the file name to suit your environment of course.

Sub LogToTextFile(Comment As String)

Open "Q:\1 access\Fleet Mgmt\zzz Service log.txt" For Append As #1 ' Open file
for output.
Write #1, Comment
Close #1

End Sub

Tony
Tony,
Thanks for the great suggestion. I don't know why I didn't think of this
myself! In any case, I have adapted it and it has led to finding a
workaround solution which I think I can live with (the cause the crashes is
still a mystery).

Cheers,
Lyn.
Oct 22 '07 #3
Lyn <l.*******@iiNet.net.auwrote:
>Thanks for the great suggestion.
You're quite welcome.
>In any case, I have adapted it and it has led to finding a
workaround solution which I think I can live with (the cause the crashes is
still a mystery).
BTW please send the crash reports to Microsoft. Fixing those problems are a very
high priority within the development team.

And what was your problem? So we'll know for others?

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/
Oct 24 '07 #4
Lyn <l.*******@iiNet.net.auwrote:
>I would still like to find out (at least) whether removing an applied
filter to redisplay the original recordset is somehow bad practice (if not
illegal), or whether I am doing it in the wrong way (I have tried many
variations, all with the same result).
I generally clear the filter (or set it to a zero length string) and setfilter = off.
That's worked for me for years.

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/
Oct 27 '07 #5
Lyn
On Sat, 27 Oct 2007 01:54:26 GMT, Tony Toews [MVP] wrote:
Lyn <l.*******@iiNet.net.auwrote:
>>I would still like to find out (at least) whether removing an applied
filter to redisplay the original recordset is somehow bad practice (if not
illegal), or whether I am doing it in the wrong way (I have tried many
variations, all with the same result).

I generally clear the filter (or set it to a zero length string) and setfilter = off.
That's worked for me for years.

Tony
Yes, that was one of the first things I tried. There must be something
else that is odd about this form :-(

Lyn.
Oct 29 '07 #6

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

Similar topics

49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
2
by: Chris Hankey | last post by:
I having a strange and annoying problem where Access crashes when the user copies (to the clipboard) the results of a query. The message is not very helpful. It simply says - "Microsoft Access...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
1
by: sticks | last post by:
I hope someone can help with this strange problem I've encountered: I have an Access interface that is used to access a SQL database. The interface uses some stored procedures to display...
2
by: bobc | last post by:
Any help appreciated with this problem -- I have a Microsoft Access 2002 application. The Access mdb has a refence to DAO 3.6 (not ADO). A form is bound to a linked table in a second mdb. In the...
2
by: accessnovice | last post by:
Hello All! I am new to programming in the MS Access environment and decided to join this community due to various problems I encountered in Access 2000 and 2003. I began a small project in Access...
4
by: Saher | last post by:
Hi, im new on this forum and just joined today. I HAVE A HUGE PROBLEM! My microsoft access does not work. I click on the link, that opens up to microsoft access, its fine untill then. But when i try...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
39
by: Martin | last post by:
I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP 5.2.5. I have not used or changed this site for several months - the last time I worked with it, all was well. When I tried it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.