I am trying to enable/disable the close button (x) on a form from vba. When I do
me.CloseButton = true
I get the following error.
runtime error 2448
You can't assign a value to this object.
* The object may be a control on a read-only form.
* The object may be on a form that is open in Design view.
* The value may be too large for this field.
The help states you can set this property from vba.
I have checked the form is not read only ie allowadditions, allowedits etc.
Can anyone help?
Stu.
me.CloseButton = true
I get the following error.
runtime error 2448
You can't assign a value to this object.
* The object may be a control on a read-only form.
* The object may be on a form that is open in Design view.
* The value may be too large for this field.
The help states you can set this property from vba.
I have checked the form is not read only ie allowadditions, allowedits etc.
Can anyone help?
Stu.