Solved

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

Posted on 2011-03-03
2
354 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

914 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

16 Experts available now in Live!

Get 1:1 Help Now