AllowDesignChanges property can not be set?

M

Martin

Hi,
In runtime I set AllowDesignChanges property of a form to false, but it
doesn't work.
Access (XP) tell me:
You can't assign a value to this object.
Runtime Error 2448

But in MSDN:
The AllowDesignChanges property can be set by using the form's property
sheet or Visual Basic.

Why?
Thanks
Martin
 
A

Allen Browne

The property can be set programmatically, but only if the form is open in
design view.
 
Top