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

/runtime + compact on close + references = crash?

I can consistently crash Access 2002 SP2 using a /runtime switch on an
mdb that has the Compact on Close property set after opening and
closing a form that uses the References collection. Remove any one of
the three variables in this equation and there is no problem. If
anyone cares to attempt to duplication the problem, just create a
single form with a text box (txtReferences) and a command button
(cmdOK) with the following code behind the form:

Private Sub cmdOK_Click()
DoCmd.Close
End Sub

Private Sub Form_Open(Cancel As Integer)

Dim ref As Reference
Dim sMsg As String

sMsg = ""
For Each ref In Application.References
If ref.IsBroken Then
sMsg = sMsg & "Missing Reference: " & ref.FullPath & vbCrLf
Else
sMsg = sMsg & "Reference: '" & ref.Name & "' " & _
ref.FullPath & vbCrLf
End If
Next ref
txtReferences = sMsg
Set ref = Nothing

End Sub

Set the Compact on Close property and make the form the startup form.
Open the database with the /runtime switch then close the form and use
File | Exit and you will get the message "Microsoft Access has
encountered a problem and needs to close. We are sorry for the
inconvenience." The only references in the database are VBA and
Access 10 and neither is missing. Can anyone duplicate the problem?
Any ideas for a solution?

Rick Collard
www.msc-lims.com

Nov 12 '05 #1
0 1275

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

Similar topics

13
by: James Franklin | last post by:
Hi, I have a number of databases in A2K, written on different machines with different installations of Office. I have found that compacting a database while it is open regularly fails, seemingly...
2
by: hamlet1 | last post by:
I develop and maintain many Access 2003 databases and about a week ago all mdb front ends started crashing Access after compacting on closing. The problem doesn't occur with compiled mde versions...
1
by: TeeCo | last post by:
Hi folks. I'm trying to change the location of the Access mdb file I connect to using OleDb and am having trouble. I'm using Visual C# 2005 and the default values I use for the ConnectionString...
1
by: hamlet1 | last post by:
Back in November 2005 I posted an item about a problem I was having with Access 2003 SP2 crashing when attempting to compact an mdb file that had refererences to mda or mde files. It would crash...
8
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
2
by: Greg Wood | last post by:
As a new member, I hope I am posting correctly. Bear with me if not ! I found a posting by Earle Oxner that very closely matches the situation we are in. Sadly, there were no replies to his post,...
2
by: gibsonsgman | last post by:
hello, i have a question about compactin/repairing a database at runtime. i have code that will do this, but when it runs i get the error "You can't compact the open database while running a...
1
by: aaron | last post by:
Hello folks, Has anyone ever experienced the Access 2002 runtime crashing when the "Compact on Close" option is set for an MDE file? We are currently having this problem on a number of...
0
by: ARC | last post by:
Hello all, Due to some users experiencing severe front end bloating (Normal compacted front end .accdr is 27MB's, FE can bloat to 80-90+Mb's in a day), I want to enable the "Compact on Close"...
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:
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
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,...
1
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
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...
0
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,...
0
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...

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.