PC Review


Reply
Thread Tools Rate Thread

Access shuts down after opening query

 
 
MarkusJohn
Guest
Posts: n/a
 
      3rd Nov 2008
Hi,

I'm sort of lost with a big access DB, that contains large amount of
tables and complex queries.

Yesterday I was able to amend a query in design view, but when I tried
to run it Access has shut down.
Today I tried the same and I'm not even able to open the query in
design mode any more.

Compact and Repair I have tried but this does not help anything.

Does anybody knows what to do in such a case?

Thanks,
Markus
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      3rd Nov 2008
Markus, there could be any number of reasons triggering this crash.

To try to rescue the query:
1. Open the Immediate Window (Ctrl+G) and enter:
? CurrentDb.QueryDefs("Query1").SQL
substituting your query name for Query1.
If it prints the query's SQL statement, copy it to Notepad, and save.
Then delete the query.

2. Make sure Name AutoCorrect is turned off. For how and why, see:
Failures caused by Name Auto-Correct
at:
http://allenbrowne.com/bug-03.html

3. Compact the database.

4. If the query (or any queries that it relies on) uses any VBA functions --
whether user-defined ones built-in ones like IsNull(), Left() -- decompile,
compact again, set minimal references, and compile. Details in steps 4 - 8
of this Recovery sequence at:
http://allenbrowne.com/recover.html

5. If the query uses any other queries as input 'tables', open those and
make sure there is nothing in their Filter or Order By properties. Continue
down the line until you are drawing from tables only. Then compact again.

6. Create a new query. Cancel the dialogs. Switch to SQL View. Paste in the
query statement you saved back at step 1. Switch to design view. Save.

If you are still stuck at this point, the problem is deeper, such as a
yes/no field that contains a Null (e.g. in a subquery or on the outer side
of a join.) Explanation:
http://allenbrowne.com/NoYesNo.html

Or, it could have to do with badly matched data types.

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

"MarkusJohn" <(E-Mail Removed)> wrote in message
news:3f3b9e7f-6983-498e-b397-(E-Mail Removed)...
> Hi,
>
> I'm sort of lost with a big access DB, that contains large amount of
> tables and complex queries.
>
> Yesterday I was able to amend a query in design view, but when I tried
> to run it Access has shut down.
> Today I tried the same and I'm not even able to open the query in
> design mode any more.
>
> Compact and Repair I have tried but this does not help anything.
>
> Does anybody knows what to do in such a case?
>
> Thanks,
> Markus


 
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
Opening query shuts access down Tara Microsoft Access Queries 0 12th Aug 2008 03:49 PM
Saving Query shuts Access down...??? =?Utf-8?B?TW9uaXNo?= Microsoft Access Queries 8 2nd Mar 2006 07:55 PM
Access shuts down, when i try to save this query =?Utf-8?B?RGFubg==?= Microsoft Access Queries 12 3rd Feb 2006 02:49 AM
Access shuts down when opening a query Amelia Microsoft Access 1 30th Jan 2004 12:48 AM
database shuts down when opening query in design mode geode_1 Microsoft Access Queries 1 23rd Jan 2004 12:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:34 PM.