G
Guest
According to the MSDN Library, a Microsoft.Office.Interop.Access.Form
object's Name property (or .Properties("Name").Value) is read/write. Were
this true, it would make creating and saving a Form quite straightfoward.
Unfortunately, when I actually try to set the Name property from code (.NET
2.something), I'm presented with an "unhandled COMException" informing me
that "This property is read-only and can't be set." Nothing I've been able to
find in the MSDN Library, or any forums, addresses this.
The version of Access in question is 2003 (11.8166.8172). The only
documentation I've been able to find, despite extensive searching, is for
Access 2007. Therefore, I can't quite call this a case of misdocumentation,
but in any case, I'm stuck between 1. having programmatically-generated forms
be named things like Form51, or 2. forcing the enduser to manually enter a
name...for each of a potentially quite large and complicated list of forms.
Neither is acceptable.
Any suggestions?
object's Name property (or .Properties("Name").Value) is read/write. Were
this true, it would make creating and saving a Form quite straightfoward.
Unfortunately, when I actually try to set the Name property from code (.NET
2.something), I'm presented with an "unhandled COMException" informing me
that "This property is read-only and can't be set." Nothing I've been able to
find in the MSDN Library, or any forums, addresses this.
The version of Access in question is 2003 (11.8166.8172). The only
documentation I've been able to find, despite extensive searching, is for
Access 2007. Therefore, I can't quite call this a case of misdocumentation,
but in any case, I'm stuck between 1. having programmatically-generated forms
be named things like Form51, or 2. forcing the enduser to manually enter a
name...for each of a potentially quite large and complicated list of forms.
Neither is acceptable.
Any suggestions?