dhemple
asked on
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![Nav igationSub form].Form ![frm_Prem ierProduct LaunchPlan ner_SubFrm _FDB].Form .Filter = "[FDB_BrandName] Like '*" & Forms![MainMenu].Form![Nav igationSub form].Form ![frm_Prem ierProduct LaunchPlan ner_SubFrm _FDB]![txt SearchBran dName] & "*' "
Me.Form.FilterOn = True
Requery
Me![txtSearchBrandName] = ""
Me![txtSearchBrandName].Se tFocus
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![Nav
Me.Form.FilterOn = True
Requery
Me![txtSearchBrandName] = ""
Me![txtSearchBrandName].Se
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Suggested solution did not work. I had to use a different method to resolve my issues.
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)