Access 2010 Forms, saving in code

I use the following code to change the Caption property of a Label, then attempt to save the Form to preserve the new Caption.  The new caption property is set, but is not saved.  It reverts to the original caption value when the form is closed and opened again.

        Forms!Utility_Housekeeping.Controls!LblHouseholds.Caption = rsHH.RecordCount & " Households"
        DoCmd.Save acForm, "Utility_Housekeeping"
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eric ShermanAccountant/DeveloperCommented:
Try opening the form in design mode and hidden.  Make your change, save the form and close it.

Rey Obrero (Capricorn1)Commented:
you have to open the form in design view,
change the caption
save the form

docmd.openform  "Utility_Housekeeping.Controls", acdesign, , , ,achidden

Forms!Utility_Housekeeping.Controls!LblHouseholds.Caption = rsHH.RecordCount & " Households"

docmd.close acform,  "Utility_Housekeeping.Controls", acsaveyes

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Changing objects in design view is poor practice in a shared application.  If you want to customize settings for individual users, the flexible way would be to build a table that lives in the BE and includes the userID so you can store settings by user.  Then the app can apply the settings as appropriate.

What you are doing will be lost the next time you replace the FE assuming you take the advice of the other two experts.
David_W_RAuthor Commented:
All very useful advice:
Estherman for 1st response
Rey Obrero for details
PatHartman for the heads up and alternative

Many thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.