473,503 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

application quits

I have a form with a subform and a few buttons that open various
reports, tables and forms. Sometimes when I open it in any view or try
and save it, the application quits. It does this quickly without
saving any design changes and without closing the .Ibd files. There
are no error messages either. I have tried decompiling, compacting,
transferring all objects to a new database file and even recreating the
entire form from scratch. The problem does not happen every time and I
can go a week or so without any problems.

Any ideas what this might be or how t go about finding out?

DAG

Nov 13 '05 #1
9 1769
If you have not yet turned Name AutoCorrect off, it is most likely
corrupting your database. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
More info:
http://allenbrowne.com/bug-03.html
Then compact again.

If this is Access 2002 or 2003, try adding a text box to the subform for the
field named in the LinkMasterFields property of the subform control. Known
issue.

If the RecordSource of the main form or subform contains a subquery, try
removing the subquery to see if the crash stops. If it does, look for an
alternative to the subquery (such as stacking one query on another.)

Also worth checking the service pack for your version of Office and also
your version of JET 4:
http://support.microsoft.com/gp/sp

More general suggestions:
Preventing Corruption
at:
http://allenbrowne.com/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.

"Danifrog" <gi*****@crestedbutte.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have a form with a subform and a few buttons that open various
reports, tables and forms. Sometimes when I open it in any view or try
and save it, the application quits. It does this quickly without
saving any design changes and without closing the .Ibd files. There
are no error messages either. I have tried decompiling, compacting,
transferring all objects to a new database file and even recreating the
entire form from scratch. The problem does not happen every time and I
can go a week or so without any problems.

Any ideas what this might be or how t go about finding out?

DAG

Nov 13 '05 #2
Thanks! I did what you suggested, read through your suggestions. I
can't tell for sure because it doesn't happen every time but hopefully
this solved it.

Debbie

Nov 13 '05 #3
Oops, spoke too soon. I compacted, decompiled, compated again,
compiled and still the application quit unexpectedly without an error
msg!

Debbie

Nov 13 '05 #4
Also I transferred all objects to a new db file. Still quit on me!

Nov 13 '05 #5
What version of Access is this?
Locate msaccess.exe, typically in c:\program files\Microsoft Office\Office.
Right-click it and choose Properties.
What version?

What version of JET are you running?
Locate msjet40.dll, typically in \windows\system32.

What References are checked?
Open a code window in Access.
Choose References from the Tools menu.
Which ones have a checked box?

Does this happen with just one form (and its subform)?

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

"Danifrog" <gi*****@crestedbutte.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Also I transferred all objects to a new db file. Still quit on me!

Nov 13 '05 #6
Access 2000

Jet 4.0.8618.0

References:
Visual Basic For Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft ActiveX DataObjects 2.1 Library
Microsoft DAO 3.6 Object Library
Microsoft Excel 9.0 Object Library

This was happening with just one form. I recreated just part of this
form from scratch (everything except the subform) and now it is
happening with this new form as well.

Thanks for your help.

Debbie

Nov 13 '05 #7
You have narrowed it down a little, in that the simplified main form still
shows the problem, so it's not the subform.

Check under Help | About that you have "SP3" for Office 2000.

You may be able ot move the OLE Automation and ActiveX DataObjects
libraries. Does it still compile? If so, you have simplied it down further.

Presumably Name AutoCorrect is still off.

Now to this new form. What is its RecordSource? Table? Query? What's in the
query? Are these local Access tables, or attached Access table, or attached
ODBC tables, or ...?

Any combos or list boxes on this form? What is their RowSource?

When does the crash occur? When you start to edit a record? When it goes to
save a record? When you click a button?

Do all modules use Option Explicit? If not, add it and compile again.

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

"Danifrog" <gi*****@crestedbutte.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Access 2000

Jet 4.0.8618.0

References:
Visual Basic For Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft ActiveX DataObjects 2.1 Library
Microsoft DAO 3.6 Object Library
Microsoft Excel 9.0 Object Library

This was happening with just one form. I recreated just part of this
form from scratch (everything except the subform) and now it is
happening with this new form as well.

Thanks for your help.

Debbie

Nov 13 '05 #8
I have SP3.

I removed all unused references.

Name AutoCorrect is off.

Recordsource for the form is a query based on linked tables.

Row source for combo boxes are linked tables.

All modules use Option Explicit.

I can often get it to crash by opening the form in design view and then
changing to form view. Usually I have to do this numerous times in
order to get it to fail.

It may also fail when saving changes in design view or by simply
opening it.

Is there anything that might make it fail from just changing the view
or saving or opening the form?

In the meantime I have been working on deleting things from the form
one at a time and testing it.

Thanks for your help, I have at least been able to clean up a few other
things.

Debbie

Nov 13 '05 #9
Okay, you've got most things tied down.

If it fails when you load the form, then the first place to look will be the
code that executes at that point. This includes Form_Open, Form_Load,
Form_Current (especially) of the main form, and the same events of the
subform. It could also be the GotFocus or Enter events of the first control
in the tab order on the form (and on the subform).

Another option is to decompile. You do that 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"
Then compact, and compile again.

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

"Danifrog" <gi*****@crestedbutte.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I have SP3.

I removed all unused references.

Name AutoCorrect is off.

Recordsource for the form is a query based on linked tables.

Row source for combo boxes are linked tables.

All modules use Option Explicit.

I can often get it to crash by opening the form in design view and then
changing to form view. Usually I have to do this numerous times in
order to get it to fail.

It may also fail when saving changes in design view or by simply
opening it.

Is there anything that might make it fail from just changing the view
or saving or opening the form?

In the meantime I have been working on deleting things from the form
one at a time and testing it.

Thanks for your help, I have at least been able to clean up a few other
things.

Debbie

Nov 13 '05 #10

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

Similar topics

5
13551
by: The Roys | last post by:
Hi Im doing something wrong in quitting the Word.Application in my VB program. I have General Declarations Dim AppWord As Word.Application Form_Load() Set AppWord =...
4
2452
by: John Wheeler | last post by:
Hi, I wanted to upgrade my adc to fixpack 5 on Windows XP Professional (Dutch edition). However after unzipping the cab files the Windows installer quits with a dialog saying (translated from...
4
3524
by: BB | last post by:
Hello all, I might be missing something here, but am trying to understand the difference between using application-level variables--i.e. Application("MyVar")--and global variables--i.e. public...
4
2499
by: msnnews.msn.com | last post by:
hi there, i've got a form that populates a datagrid, and a button that calls a function to export to an excel file. All is well with the export, no errors are returned, but the Excel instance...
3
470
by: Juande | last post by:
Hello, I've a working application made with Visual Studio .Net 2003 and SQL Server 2000 SP3, this application runs on several pc stations with Windows XP SP2 installed. When an user is using...
0
1338
by: Brandon | last post by:
Hi All, I'm attempting to develop a Tcl/Tk application on the mac using python and Tkinter. The one problem I'm having is adding basic keyboard support to my application, specifically binding...
2
5632
by: Chukkalove | last post by:
While trying to run an ApplicationContext rather than creating a new form, I noticed that the application never quits. I stripped the code out of it down to the bone and it still doesnt exit. I...
3
2160
by: Oleg.Ogurok | last post by:
Hi there, I wrote an app that has GUI but also accepts command line parameters for automated execution. When the app is started from command line with parameters, I'd like the application to...
4
2105
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
In VB I am doing an animation via Application.Idle. My idle routine is: Private Sub Form1_Idle(ByVal sender As System.Object, ByVal e As System.EventArgs) Draw() Application.RaiseIdle(e) End...
0
7203
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
7281
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,...
0
7334
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...
1
6993
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...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.