M
Mark Andrews
Question on a little code:
Access2007 I have a form "frmFilter" and a subform "frmFilterContacts"
The subform is a datasheet.
I have a button on frmFilter with the following code:
Private Sub cmdShowHideFields_Click()
Me.frmFilterContacts1.SetFocus
DoCmd.RunCommand acCmdUnhideColumns
DoCmd.Save
End Sub
The first two lines work fine and popup the list of fields in the datasheet
and allow the user to change which ones are shown/hidden.
The question is how do I suppress the "Do you want to save changes to the
design of form "frmFilterContacts"?
The DoCmd.Save suppressed the same question on "frmFilter".
I tried a few things but thought this was a good question for the newsgroup.
Thanks,
Mark
Access2007 I have a form "frmFilter" and a subform "frmFilterContacts"
The subform is a datasheet.
I have a button on frmFilter with the following code:
Private Sub cmdShowHideFields_Click()
Me.frmFilterContacts1.SetFocus
DoCmd.RunCommand acCmdUnhideColumns
DoCmd.Save
End Sub
The first two lines work fine and popup the list of fields in the datasheet
and allow the user to change which ones are shown/hidden.
The question is how do I suppress the "Do you want to save changes to the
design of form "frmFilterContacts"?
The DoCmd.Save suppressed the same question on "frmFilter".
I tried a few things but thought this was a good question for the newsgroup.
Thanks,
Mark