Why is Field's ButtonLayout property unavailable in VBA?
My code is fairly standard, if people need to see more I can provide but essentially I am just trying to access a field's ButtonLayout property. I know the field I am accessing is a button, b/c I Added it previously in the code and I can review it once the file saves. The last line below is the one that doesn't work. I get the error "Object doesn't support this property or method". I am using MS Access 2016 with the Adobe Acrobat 10.0 Type Library. In contrast I can access the Value, and the BorderStyle properties and set them just fine. The lines in green work, the line in red does not work. Why? I've tried not using capitals and camel case. No difference.
...
Set pdDoc = avDoc.GetPDDoc()
Set jso = pdDoc.GetJSObject
jso.getField("buttonImage1")..BorderStyle = "beveled"
jso.getField("buttonImage1").buttonImportIcon CStr(photoSet!Photo)
jso.getField("caption1").Value = CStr(photoSet!Caption)
jso.getField("buttonImage1").ButtonLayout = "1"
...
