Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 826
  • Last Modified:

Access 2007 - 2010 Applied Form Filter Prompting User to Save Form

Hello Experts.

The below code works.  However, when I move to another tab within the navigation form I get a message asking me to save the form.  The filter within the form changes to whatever I entered in the [txtSearchBrandName] control and therefore prompts me to save.

Is there a way around this?  I'm not so interested in saving the changes, but if I have to I would like to do so without a prompt to the user.

Thank you.

DoCmd.ShowAllRecords
Forms![MainMenu].Form![NavigationSubform].Form![frm_PremierProductLaunchPlanner_SubFrm_FDB].Form.Filter = "[FDB_BrandName] Like '*" & Forms![MainMenu].Form![NavigationSubform].Form![frm_PremierProductLaunchPlanner_SubFrm_FDB]![txtSearchBrandName] & "*' "
Me.Form.FilterOn = True
Requery
Me![txtSearchBrandName] = ""
Me![txtSearchBrandName].SetFocus
0
dhemple
Asked:
dhemple
  • 2
1 Solution
 
mbizupCommented:
From what I've seen, browsing other similar threads, this sounds like a bug with navigation forms and tables or subforms in datasheet view, and which others seem to have worked around by strategically placing

Docmd.SetWarnings False

and ensure that at some point in there code there is a corresponding

Docmd.SetWarnings true

(Untested by me - just something I've seen in similar threads)
0
 
dhempleAuthor Commented:
I was unable to get the suggested solution to work and had many other issues with Navigation Sub form that followed.  As a result, I scraped the use of Navigation Sub forms and create my own navigation sub forms.  In doing so, users are no longer prompted to save the form as they were previously.

Thank you.
0
 
dhempleAuthor Commented:
Suggested solution did not work.  I had to use a different method to resolve my issues.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now