473,769 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 Crash

I have a fairly large Access application that ran correctly in Access
2000. After upgrading to Access 2003 (and recompiling and updating
references), it reliably crashes at a certain point. If I step
through the VBA code, the crash does not occur.

What is different about stepping through code instead of just running
it?

Any idea how to find the cause? I know about where it happens, but
since it is Access itself crashing, finding a workaround is just trial
and error.
Nov 12 '05 #1
14 5271
Have you used the Office Update to assure that you have all the updates to
Office 2003 (they'd be patches, rather than Service Packs, at this point)
and to Jet 4.0 (it's up to Service Pack 8, for Office 2003)?

"Access itself crashing" isn't normal behavior. I can assure you that is not
in the category of "working as designed". Since there _should_ be nothing
the user can do to cause this, I'd suspect it would be a free incident with
the support team (you could call and ask).

Unless they have a patch that hasn't yet been fully tested and released that
applies, however, I am reasonably sure that one of the things they will
suggest is that you first uninstall Office/Access, and then re-install it,
then run Office update. Whether that will fix the problem or not, it's
something that usually has to be done to eliminate an install error. And,
it's entirely possible that whatever is triggering the crash is some
external function that Access is using, so it might not be something in
Access or Office.

Timing is different when you step through code and when you run it. From a
user point of view, though, there's not really anything we can do about
"timing problems" inside the host (Access, in this case).

But, if you can narrow down where it is happening, if that is in code, and
you post some code around that area, with your best guess at where it
happens, maybe someone could suggest another way to do it that _might_ not
trigger the same consequences. Don't count on that, but it's a possibility.

Larry Linson
Microsoft Access MVP
"JK Peck" <pe**@spss.co m> wrote in message
news:bc******** *************** ***@posting.goo gle.com...
I have a fairly large Access application that ran correctly in Access
2000. After upgrading to Access 2003 (and recompiling and updating
references), it reliably crashes at a certain point. If I step
through the VBA code, the crash does not occur.

What is different about stepping through code instead of just running
it?

Any idea how to find the cause? I know about where it happens, but
since it is Access itself crashing, finding a workaround is just trial
and error.

Nov 12 '05 #2
I did check for updates, and I found none available. My Access version
is 11.5614.5703, and Jet 4.0 SP8.

I suspected a race condition or other timing problem and placed some
alerts in the suspect areas to make the application pause several times
in the code, but the crash still occurs. Some random permuting of code
gave the same result, unfortunately.

I wondered whether single stepping bypassed any optimization in the code
(if there is any when compiling). But I can't really ask users to
single step the code in order to get their job done!

This has occurred on two different recent Access 2003 systems, one on
Win 2K and one on WinXP.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
pe**@spss.com (JK Peck) wrote:
I have a fairly large Access application that ran correctly in Access
2000. After upgrading to Access 2003 (and recompiling and updating
references), it reliably crashes at a certain point. If I step
through the VBA code, the crash does not occur.


Try inserting some DoEvents in the code.

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
Nov 12 '05 #4
"J Peck" <pe**@spss.co m> wrote

The "build information" you cite is identical to mine, and I haven't had any
similar problems.
This has occurred on two different recent
Access 2003 systems, one on Win 2K and
one on WinXP.


Was this a copy of the same database? Is it happening in an MDB or in an
MDE? Have you tried adding a few DoEvents in the area of code that is
suspect?

Perhaps it is some form of corruption. To get around _that_, the best way
would be to compact and repair your database. If that doesn't help, create a
new database, copy in all the objects _except_ the ones you suspect as
causes, and re-create those suspect ones in the new database.

If that doesn't do it, and someone else doesn't have some suggestions, I
think you may need to contact M'soft support. As I said, with Access itself
crashing, that is not the way it should operate and the user should not be
able to cause it from the database the user creates.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #5
pe**@spss.com (JK Peck) wrote in
news:bc******** *************** ***@posting.goo gle.com:
I have a fairly large Access application that ran correctly in
Access 2000. After upgrading to Access 2003 (and recompiling and
updating references), it reliably crashes at a certain point. If
I step through the VBA code, the crash does not occur.


Have you decompiled and recompiled?

Have you created a fresh MDB and imported everything into it (from a
decompiled version)?

I've seen problems with compiled code causing crashes with slightly
different versions of the VBA libraries, and decompiling always gets
rid of it.

Of course, in A2K, decompiling is not quite as easy as in A97 (it
doesn't clean out as much gunk), hence the suggestion about
importing into a new MDB.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #6
pe**@spss.com (JK Peck) wrote in message news:<bc******* *************** ****@posting.go ogle.com>...
I have a fairly large Access application that ran correctly in Access
2000. After upgrading to Access 2003 (and recompiling and updating
references), it reliably crashes at a certain point. If I step
through the VBA code, the crash does not occur.

What is different about stepping through code instead of just running
it?

Any idea how to find the cause? I know about where it happens, but
since it is Access itself crashing, finding a workaround is just trial
and error.


When does this happen? Sound similar to what was happening (Access
2000 and XP both) in my code when opening a form with lots and lots of
subforms. The way I found around it was to leave the subforms with no
object. Then I put a .5 second delay to run the form timer event and
set up the source object there. If you do this and it solves your
problem, you'll have to pay attention to the child and master links.
Access seems to trash them if you have more than one field in the
link.

I hope this helps.
Nov 12 '05 #7
Thanks for all these suggestions. After trying all the usual,
including DoEvents to no avail, I inserted SysCmd messages to the
status bar and found that the line of code that triggered the crash
was simply
Me.refresh
after the code had made various updates. And, indeed, commenting out
that line and running Refresh from the menu once the code had
completed did crash.

Now the form in question consists of a main form and a subform. The
code in question only affected the subform, so I created a refresh
function in the subform and called that from the main form code, and I
get the refresh without a crash. The data tables, which are actually
in a linked database, were already getting properly updated.

This suggests to me that the form data structure in memory has gotten
corrupted somehow, but this has at least moved the problem far enough
away that we can get our work done.
Nov 12 '05 #8
pe**@spss.com (JK Peck) wrote in
news:bc******** *************** ***@posting.goo gle.com:
This suggests to me that the form data structure in memory has
gotten corrupted somehow, but this has at least moved the problem
far enough away that we can get our work done.


My suggestions would get rid of any form corruption.

And it's why I posted them, because form corruption can lead to
Access crashes.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #9
"David W. Fenton" <dX********@bwa y.net.invalid> wrote in message news:<Xn******* *************** ************@24 .168.128.78>...
pe**@spss.com (JK Peck) wrote in
news:bc******** *************** ***@posting.goo gle.com:
This suggests to me that the form data structure in memory has
gotten corrupted somehow, but this has at least moved the problem
far enough away that we can get our work done.


My suggestions would get rid of any form corruption.

And it's why I posted them, because form corruption can lead to
Access crashes.


I would have gotten rid of the corruption if I could, but compact and
repair and even exporting everything to a clean database does not
solve it. I think it is happening dynamically.

While the code change I made gets around the problem, the corruption
is demonstrably still there, since doing a Refresh from the menu bar
still causes the crash.

In fact, I found that as soon as the form is opened, it is corrupted,
i.e., Refresh crashes it. There is a little bit of onLoad and
onCurrent code that is run, but it is pretty innocuous. I'll be
trying to pin this down further.
Nov 12 '05 #10

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

Similar topics

6
4753
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
5
2506
by: mr_mach7 | last post by:
I have an Access database that needs to be compacted and repaired almost on a daily basis. It is the front end that needs to be fixed, so other users cannot get into it when the problem happens. This is driving me nuts and needs to be resolved. The database was originally created in 97 and converted to 2002-2003 format. It is split into front-end and back-end. The it is placed in a network share for multiple user access. There are only...
0
3292
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
8
9762
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my problem: my vb.net program has problems with UNC. If the UNC server is restarted or goes off-line, my VB.net program crashes. The code for UNC access to the file is included below and is put in the tick event of a form timer control running every...
17
4416
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
3
7772
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window appears. It doesn't happen every time, and using the Zoom window works fine. It appears that it only happens when I want to modify an existing expression. This continues to happen even after the database is repaired and reopened. Anyone have any...
1
1738
by: Access | last post by:
I have a database in a .adp file. If I work on it using Access 2003 it will crash when I am changing a form or report. If I go to a backup and recreate the same series of changes it will crash everytime. If I do those same changes in Acess 2007 it's fine. When I go back to open the file it is corrupted and unusable. If I work on it in Access 2007 it's fine. It first started doing this after I had installed Access 2007. I had...
2
1973
by: Access | last post by:
Anyone else experiencing corruption problems using Access 2003 to edit .adp files? I've been experiencing corruption problems with a particular database. I've tried copying all the objects into a new file, but it didn't help. Here is an example of the problem, yesterday I added a new field to my SQL table. To put it on the form I copied an existing text field and converted that field from text to combo box. Quicker because I'm using...
1
3328
by: Jeff | last post by:
I've built a moderately complex table relationship using Access 2007 and back-saving to 2003; my partner on the project has made edits in Access 2003. Today I was unable to open Relationship view using 2007 - crashed the database, prompting to "restart and rebuild" after the crash. Tried: - saving as 2007 (*.accdb) - compact and repair (using both 2003 and 2007) - removing all "subdatasheet" relationships
0
9420
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.