Solved

Saved changes on forms and vb script revert back to original in access 2007

Posted on 2011-03-03
2
344 Views
Last Modified: 2012-05-11
Dont know if anyone else has come across this problem (you have had to right?) but when I make a change in my vb script for an access form, it asks me to save the changes. I get the save dialogue to save changes for multiple items and I of course say yes. However, AS SOON AS I CLOSE THE FORM, the changes revert back to the original state. What is causing it to do this?
save-changes.png
0
Comment
Question by:jtovar3
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 35032866
In many cases this is a sign of corruption. I'd do this:

1) Make a backup
2) Compact your databse - click the Office Button - Manage - Compact

If that doesn't work you can build a new, blank database and Import everything to that new database. To do that, after building the new db click the External Data tab group, select Access and Import everything into your new database. Make sure to remake any referneces, if needed.

If that doesn't work you may have an object that is corrupt. You can try a Decompile, which can sometimes recover these items. To do that, build a shortcut with this as the Target:

"full path to msaccess.exe" "full path to your databse" /decompile

Run this, and then open the database. Open the VBA Editor and click Debug - Compile. Fix any errors, and continue doing this until the menuitem is disabled.

After doing that, you should again Compact and Import into a New database, as described above.
0
 

Author Closing Comment

by:jtovar3
ID: 35037996
I think it had something to do with something being open. Your recommendation was excellent, but I managed to get by with closing everything and only editing the VB script and saving that. Weird.

Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now