Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Access 2003 abends on compact after compile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shambalad - 15 Nov 2006 17:56 GMT
I have encountered an error with Access 2003.
If an Access mdb database contains a reference to another mdb database and
one attempts to 'Compact and Repair' the database after compiling the
database in the same session, Access will end in error.
Scenario:
Create a new database named Test.mdb.
Create a new table called tblStates using the 'Design' method. tblStates has
two fields: ID (AutoNumber) and State (Text).
Populate the table manually (i.e. data entry).
Create a new form (frmStates) using the design wizard, with tblStates as the
form record source. Default form view is continuous. Detail section contains
one textbox with field 'State' as control source.
Add a command button in Header section called cmdExit which closes the form.
Compile the database, then compact it. Compact completes without error.
Close Test.mdb
Create a new database named Test1.mdb.
Create a new module named basTest. In basTest add the following subroutine:

Public Sub TestMsg()
MsgBox "Test"
End Sub

Close Test1.mdb and reopen Test.mdb. In Test.mdb, add a reference to
Test1.mdb.
Compile the database, then compact it. Access ends in error
Open Test.mdb. Remove the reference to Test1.mdb.
Compile the database, then compact it. Compact completes without error.

Has anyone else encountered this? Is this a bug?
Shambalad - 15 Nov 2006 18:27 GMT
BTW - My current version is Access 2003 11.0.6566.8107 SP2.
I have all the current updates installed for Access, Office and Windows XP.
david@epsomdotcomdotau - 16 Nov 2006 10:47 GMT
Yes, it's known (or at least similar problems are known), and
yes, I guess it's a bug. No, MS has not admitted that it is
a problem.

If you are using Compact on Close, you may have to turn that off.

Here's a similar report:
http://groups.google.com.au/group/microsoft.public.access/browse_frm/thread/c4f3
8ab89f13d5f


When working in Access, I am constantly closing and re-opening Access.

Closing the database is not enough: you have to quit Access and re-start.

This particular problem is new with A2003, (but in general A2000 was
even worse)

(david)

> I have encountered an error with Access 2003.
> If an Access mdb database contains a reference to another mdb database and
[quoted text clipped - 25 lines]
>
> Has anyone else encountered this? Is this a bug?
Stephen K. Young - 16 Nov 2006 23:46 GMT
>I have encountered an error with Access 2003.
> If an Access mdb database contains a reference to another mdb database and
> one attempts to 'Compact and Repair' the database after compiling the
> database in the same session, Access will end in error.

This hotfix worked for me.
http://support.microsoft.com/kb/902445

- Steve
Shambalad - 20 Nov 2006 14:18 GMT
Steve -
Thank you very much!

> This hotfix worked for me.
> http://support.microsoft.com/kb/902445
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.