PC Review


Reply
Thread Tools Rate Thread

Deleting report in MSACCESS shuts down database

 
 
=?Utf-8?B?NzI3Y3Ri?=
Guest
Posts: n/a
 
      19th Jul 2007
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.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      19th Jul 2007
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.

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

"727ctb" <(E-Mail Removed)> wrote in message
news:C392C2AD-BFA9-4FCB-AFEF-(E-Mail Removed)...
> 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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSAccess report Winefride Microsoft Access Forms 3 17th Apr 2008 01:49 AM
How to have C# Web page query MSAccess Database and simultaneously populate MSAccess DB? Siegfried Heintze Microsoft ASP .NET 1 15th Apr 2006 12:41 PM
I need to know much more about report in msaccess =?Utf-8?B?S3V0dHk=?= Microsoft Access Reports 4 6th Jul 2005 03:38 PM
converting/migration of MSAccess 2000 database to MSAccess 2003 Janette Microsoft Access 1 9th Feb 2005 02:31 PM
Re: msaccess database George Ter-Saakov Microsoft ASP .NET 0 25th Aug 2003 02:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.