Renaming Access forms

A

AJC

Howdy,

I am trying to programmatically rename MS-Access forms. I've tried the
below:

With dbsCurr.Containers!Forms

For Each docLoop In .Documents
If docLoop.Name = "frmChangeProject" Then
docLoop.Name = "frmChangeProject_Old"
End If
Next docLoop
End With
dbsCurr.Containers.Refresh


Comes back with:

Compile error:

Can't assign to read-only property

Anyone got a method for doing this what would see a straight forward task!

Cheers

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top