msaccess-vcs-addin
msaccess-vcs-addin copied to clipboard
CommandButton.PictureCaptionArrangement missing from export
I think the title says it all really.
I have a CommandButton with PictureCaptionArrangement set to Right.
On export, this property is missing from the form's .bas file. Then when I rebuild, the CommandButton doesn't get that property set and has just the default.
As a stab in the dark I tried adding the line manually to the .bas file:
But the import fails with an error here:
Microsoft Access encountered an error while importing the object 'Subjects'.
Error encountered at line 565.
This property does not apply to this control.
This is similar to #170, which turned out to be an Access version issue. I'm not sure if it's identical, but it looks quite similar.
Just for reference, I can do a full round-trip export/build with different caption alignments...
You might try creating a test database to see if you can pinpoint the issue... You could also copy and paste the button to see if it will generate the missing properties... I have seen a few cases where certain properties were missing from controls that were created in earlier versions of Access. (That's what inspired the "Repair Colors" tool in Advanced Tools.)
@joyfullservice thanks for looking into this. Can I clarify, in your test after you ran an export, did your source file contain the PictureCaptionArrangement line?
Yes, it does.
Attached is the complete file. (Added a .txt extension to attach it directly, since .bas is not supported by GitHub.) If you want, you could try importing this into a project. (Just drop the file into the source folder, remove the extra extension, and build from source.)
Is this still broken for you or did you find more information out @HughWarrington ?
Thanks for the feedback guys. I've been waylaid with other aspects of the project I'm working on but will get back to the coding side early next year. This ticket will be on my list to investigate. Happy holidays :)