Hello,
I work on an Access Add-In that screens a DB and allows to open objects in design mode to fix problems. I would like to be able to open a form in design mode and select a specific control. I have code that does exactly that:
BUT when closing the form I always get a "Do you want to save changes to the design of form 'MyForm'?" message box, regardless of what I have done (if anything). This is certainly confusing to users as nothing has changed worth saving.
As a workaround I tried
what works, but this changes the Modified Time Stamp of the form what might not amuse all users.
Any help on this issue would be really appreciated.
Thomas
I prepared a litte Demo DB that demonstrates this behaviour.
I work on an Access Add-In that screens a DB and allows to open objects in design mode to fix problems. I would like to be able to open a form in design mode and select a specific control. I have code that does exactly that:
Code:
DoCmd.OpenForm "MyForm", acDesign
Forms("MyForm").Controls("MyControl").InSelection = True
As a workaround I tried
Code:
DoCmd.Save acForm, "MyForm"
Any help on this issue would be really appreciated.
Thomas
I prepared a litte Demo DB that demonstrates this behaviour.