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 / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Deleting report in MSACCESS shuts down database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
727ctb - 19 Jul 2007 06:12 GMT
When I try to open/delete or select a report from the OBJECTS window the
database shuts down by itself.  This report is a copy of a report that
functions normally.  the only difference is that its control source is a
querie and not a table.  when i open the QUERIE(Table format) it opens with
no hassles.
Allen Browne - 19 Jul 2007 07:39 GMT
Sounds like the report has corrupted.

Try this sequence:

1. Delete the bad report.

2. Uncheck the boxes under:
   Tools | Options | General | Name AutoCorrect
In Access 2007, it's:
   Office Button | Access Options | Current Database | Name AutoCorrect
Explanation of why:
   http://allenbrowne.com/bug-03.html

2. Compact the database to get rid of this junk:
   Tools | Database Utilities | Compact/Repair
or in Access 2007:
   Office Button | Manage | Compact/Repair

3. Close Access. Make a backup copy of the file. Decompile the database 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"

4. Open Access (holding down the Shift key if you have any startup code),
and compact again.

Now to recreate the report:
5. Open the report you want to copy, in design view.

6. Choose SaveAs on the File menu to create the copy.
Close this report.

7. Open the newly created report in design view.
Set its RecordSource property to the desired query.

8. Compact again. Then test the report.

If it still crashes, there is another problem. For example, the new query
may not have all the field names the report is using (including any in its
Sorting And Grouping dialog, calculated controls, or Filter or OrderBy
properties.)

Or, if the query does contain the field, perhaps the field has changed data
type (which can happen with calculated controls.)

Or perhaps the report contains code that no longer works when based on the
new query.

Or perhaps this is Access 2007 with some known bugs.

Signature

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.

> When I try to open/delete or select a report from the OBJECTS window the
> database shuts down by itself.  This report is a copy of a report that
> functions normally.  the only difference is that its control source is a
> querie and not a table.  when i open the QUERIE(Table format) it opens
> with
> no hassles.
 
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



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