473,779 Members | 1,884 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
14 5272
pe**@spss.com (JK Peck) wrote in
news:bc******** *************** ***@posting.goo gle.com:
"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.


Compact and repair will hardly ever get rid of code corruption.

Importing will often not.

Only a full decompile will get rid of code corruption.
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.
Aha. That's a new one that you hadn't mentioned, which makes me
think it's *not* code corruption at all.
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.


Something about the state it's in when the refresh happens is
causing the problem, obviously. But that makes it very hard to
figure out.

I would say it's probably something to do with data retrieval, not
form corruption.

Is it an Access/Jet back end?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #11
Has anyone found a solution to this problem? I have the exact same
problem. One form of about eight forms in a medium size database
consistently crashes. I could not determine why. When I read through
this link and tried the refresh through the menu, I get the same crash
every time. This is a database I am developing for a client and it has
held us up for the past two weeks. I have been using Access for about 7
years and not had a similar problem. This is an Access 2003 database
and it is set-up as a front-end back-end. The error names msjtes40.dll.

Any help would be greatly appreciated.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #12
Mark Osterhout <mo*******@yaho o.com> wrote in
news:41******** **************@ news.newsgroups .ws:
Has anyone found a solution to this problem? I have the exact
same problem. One form of about eight forms in a medium size
database consistently crashes. I could not determine why. When I
read through this link and tried the refresh through the menu, I
get the same crash every time. This is a database I am developing
for a client and it has held us up for the past two weeks. I have
been using Access for about 7 years and not had a similar problem.
This is an Access 2003 database and it is set-up as a front-end
back-end. The error names msjtes40.dll.


Does it have the problem on all PCs? I have a client with two PCs in
her office and one of the reports crashes Access on the WinXP PC and
runs without problems on the Win98 PC. THe report is not corrupted.
It's something about the interaction of the data source (a SQL
string) and the sorting/grouping in the report that doesn't work
well on the WinXP PC.

It could be a video driver issue, for instance.

My guess is that your problem is something similar. To diagnose, try
these steps:

1. do a SAVE AS to make a duplicate copy of the form.

2. open it. If it crashes, it's probably not corruption in the form.

3. in the copy of the form, remove the datasource and open the form.

4. if it doesn't crash (as it's likely not to), you know that the
problem is with the interaction between the data retrieval and the
form itself.

This speculation on my part is bolstered by your report that the
page fault is occuring in the Jet DLL.

Sometimes you can fix this kind of problem by upgrading your Jet
version. Sometimes you can fix it by rewriting the SQL, or by
changing to a saved query for your datasource (or, if you're using a
saved query, change to using a SQL string saved as the
recordsource). Sometimes you can fix this kind of problem by
updating your video drivers.

Yes, I know that mostly doesn't help! :)

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #13

David,

Thanks for the post. I found a work-around. Here is a better
explanation of the problem. The form is an order entry form. It has a
tab control with four tabs. The second tab contains two sub-forms. One
for order items and another for miscellaneous items. This is where I
found the problem.
The problem first occurred when the front end was set-up at the
workstations on the network. When the user entered orders, the crash
occurred at random. It might be the first record entered or it might
have been the 10th. It always happened after entering the initial
field, customer name. It never happened when the front end and back end
resided on the same computer. It happened more frequently on slower
computers. The system would return the message MS Access must shut down
and the msjtes40.dll file was named.
After reading this link I tried the Refresh through the menu and it
would cause the exact same crash. I had already checked to make sure I
had the latest service pack for MS Access and that the Jet engine was at
its latest release. I had another form, Order Archive, that was set-up
almost exactly the same way. I tried the Refresh through the menu on
this form and it did not crash. I went back to the original form and
deleted the sub-forms from the second tab, tried the refresh and it did
not crash. I added the order items sub-form back and tried the refresh,
again no crash. I added the second sub-form and tried the re-fresh, it
crashed every time. I changed the record locked property on the second
sub-form to True, tried the refresh and this time, no problem. The rest
was easy, I enter the following code in the on_enter event for the
sub-form;

Me![Order_Misc_Subf orm].Locked = False

And the on_exit event;

Me![Order_Misc_Subf orm].Locked = True

That’s it (problem not fixed, but worked around, and the programmer with
another black eye). The jet engine must have a problem opening more
than one sub-form on a tab control.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #14
Mark Osterhout <mo*******@yaho o.com> wrote in
news:41******** **************@ news.newsgroups .ws:
Thanks for the post. I found a work-around. Here is a better
explanation of the problem. The form is an order entry form. It
has a tab control with four tabs. The second tab contains two
sub-forms. One for order items and another for miscellaneous
items. This is where I found the problem.
The problem first occurred when the front end was set-up at the
workstations on the network. When the user entered orders, the
crash occurred at random. It might be the first record entered or
it might have been the 10th. It always happened after entering
the initial field, customer name. It never happened when the
front end and back end resided on the same computer. It happened
more frequently on slower computers. The system would return the
message MS Access must shut down and the msjtes40.dll file was
named. After reading this link I tried the Refresh through the
menu and it would cause the exact same crash. I had already
checked to make sure I had the latest service pack for MS Access
and that the Jet engine was at its latest release. I had another
form, Order Archive, that was set-up almost exactly the same way.
I tried the Refresh through the menu on this form and it did not
crash. I went back to the original form and deleted the sub-forms
from the second tab, tried the refresh and it did not crash. I
added the order items sub-form back and tried the refresh, again
no crash. I added the second sub-form and tried the re-fresh, it
crashed every time. I changed the record locked property on the
second sub-form to True, tried the refresh and this time, no
problem. The rest was easy, I enter the following code in the
on_enter event for the sub-form;

Me![Order_Misc_Subf orm].Locked = False

And the on_exit event;

Me![Order_Misc_Subf orm].Locked = True

That’s it (problem not fixed, but worked around, and the
programmer with another black eye). The jet engine must have a
problem opening more than one sub-form on a tab control.


If it's not locked, then the first field in the tab order in the
first record will get the focus.

Are you loading subforms before they are displayed? I'd use the
OnChange event of the tab control to load the subform only when it's
displayed. That's pretty much standard practice for a form with
multiple subforms.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #15

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
9764
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
4417
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
1739
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
1976
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
9632
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10302
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...
1
10071
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
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
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
5372
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
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
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
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.