Can the Access Subform control property "show page header and page footer" be set using VBA -


the "show page header , page footer" property appears in properties panel can't find on msdn pages: subform.properties

how can set value of property using vba?

the name of property showpageheaderandpagefooter. in order access value, must reference via subform control's properties collection:

? forms!form2!child0.properties("showpageheaderandpagefooter").value false 

however, if want change property value, form must open in design view:

docmd.openform "form2", acdesign forms!form2!child0.properties("showpageheaderandpagefooter").value = true ? forms!form2!child0.properties("showpageheaderandpagefooter").value true 

if attempt alter value when form not in design view, access throws error #2136, "to set property, open form or report in design view."


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -