Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access closes when saving a query.

Posted on 2011-02-14
13
Medium Priority
?
281 Views
Last Modified: 2012-05-11
I'm trying to update a select query.  When I go to save the query, Access closes.  When I reopen the db and look at the query, my chgs are not saved.  Other queries work OK.  What could the issue be?
0
Comment
Question by:vsllc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 2
13 Comments
 
LVL 75
ID: 34890971
Try the basics

Compact & Repair the db

If not fix

Delete the query, do a Compact & Repair, then recreate the query

If no fix, Import all objects (except Linked tables) into a blank db.

0
 
LVL 11

Expert Comment

by:RgGray3
ID: 34891072
Do you get the same results when
     creating a NEW query
     Editing a different query  (in short 1 or 2 queries or ALL queries)

If it is just the one query...  copy the SQL to the clipboard and save it as a NEW query
if all queries...   the container is corrupt...   get them into a new container
 
0
 

Author Comment

by:vsllc
ID: 34891316
None of the three options worked.  Could it be it's too large?  It's a lot of code.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 75
ID: 34891340
Can you upload the db ?

mx
0
 

Author Comment

by:vsllc
ID: 34891439
No.  I'm going to break it into 2 queries and see if that fixes it.  Is there generally a character limit on the queries?
0
 
LVL 75
ID: 34891482
From:
http://office.microsoft.com/en-us/access-help/access-2010-specifications-HA010341462.aspx


Query
Attribute       Maximum
Number of enforced relationships       32 per table, minus the number of indexes that are on the table for fields or combinations of fields that are not involved in relationships*
Number of tables in a query       32*
Number of joins in a query       16*
Number of fields in a recordset       255
Recordset size       1 gigabyte
Sort limit       255 characters in one or more fields
Number of levels of nested queries       50*
Number of characters in a cell in the query design grid       1,024
Number of characters for a parameter in a parameter query       255
Number of AND operators in a WHERE or HAVING clause       99*
Number of characters in an SQL statement       Approximately 64,000*
0
 

Author Comment

by:vsllc
ID: 34891561
Interesting.  I'm using Access 2002.  Is this comparible?
0
 
LVL 75
ID: 34891574
Yes.
0
 

Accepted Solution

by:
vsllc earned 0 total points
ID: 34891718
OK.  This fixed it, but not sure what implications this solution will have on the db.  Any ideas?

http://www.pcreview.co.uk/forums/access-crashes-changing-and-saving-query-t1085623.html
0
 
LVL 11

Expert Comment

by:RgGray3
ID: 34891842
Seems to be specific to 2002...  interesting...  skiped from 97 to 2003...   I missed all the fun...

Don't know what if anything shutting down autocorrect will do to you.... but if it works...  your ahead of the game...
0
 
LVL 75
ID: 34892088
Guess I should have though of the Name Auto Correct issue.  I always turn if off.  

mx
0
 

Author Comment

by:vsllc
ID: 34892304
OK.  It works, I'm happy.  If something comes up I'll deal with it then!
0
 

Author Closing Comment

by:vsllc
ID: 34932159
This setting change fixed the issue.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question