Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

775 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