A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Save operation failed" after compile



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2005, 03:01 AM
ckelly
external usenet poster
 
Posts: n/a
Default "Save operation failed" after compile

I am getting an error message - "Save operation failed" after compiling an
Access2003 project. Saves made prior to compile are fine, but I'm not able to
save the compiled project, or other code changes after compiling.

Possibly related (but who knows?) - I'm not able to save the same .mdb as a
..mdE.

Any ideas or clues welcomed.

Chris
  #2  
Old June 17th, 2005, 04:54 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Sounds like a corruption. A Decompile may help.

Try this sequence:

1. Uncheck the boxes under:
Tools | Options | General | 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

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, and compact again.

5. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html

6. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.

At this point, you should have a database where the name-autocorrect errors
are gone, the indexes are repaired, inconsistencies between the text- and
compiled-versions of the code are fixed, and reference ambiguities are
resolved.

If it is still a problem, the next step would be to get Access to rebuild
the database for you. Follow the steps for the first symptom in this
article:
Recovering from Corruption
at:
http://allenbrowne.com/ser-47.html

--
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.
"ckelly" wrote in message
...
I am getting an error message - "Save operation failed" after compiling an
Access2003 project. Saves made prior to compile are fine, but I'm not able
to
save the compiled project, or other code changes after compiling.

Possibly related (but who knows?) - I'm not able to save the same .mdb as
a
.mdE.

Any ideas or clues welcomed.

Chris



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
None of your e-mail accounts could send to this recipient. shayefairy General Discussion 6 February 17th, 2005 03:11 PM
Outlook Error "The operation failed. An object could not be found. ChuckHoule Installation & Setup 1 January 4th, 2005 03:34 PM
Outlook 2002 operation failed. object cannot be found lapspec General Discussion 1 September 13th, 2004 10:02 AM
send/recieve button says operation failed, object could not be f Jeff Oglesby Installation & Setup 1 September 6th, 2004 07:53 AM
Cummaltive/Summarised Item total on a different product vlookup, depending on the description on the operation John Colling Worksheet Functions 2 February 21st, 2004 03:44 PM


All times are GMT +1. The time now is 02:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.