I have a form the is used for editing permit records. The form is equipped with a combo-box for quickly selecting the permit number you want to work on. Simple enough.
Sometimes a user will want to search for a particular record based on multiple criteria, such as highway, county, date - any combination of about a dozen fields, some of which use ranges and some which accept approximate matches. So I designed a screen where they enter just the info that they want for their criteria, click on a button and a list of qualifying permits comes up. Then they can click on any one of the permits and it will open the editing screen showing the selected permit. Everything has been working fine for the last three years.
Now it seems that some users that have been upgraded to 2007 are having trouble when they open the edit screen directly in that it has retained the filter from the last search, so they don't get all the records. (It still works fine for the 2003 users.) I tried putting the ME.FilterOn = False statement in the load event, but then it doesn't even filter when it's supposed to.
Any ideas? I thought about trying to use a global variable to determine whether to set the FilterOn property, but I don't know how to get global variables to work.
Sometimes a user will want to search for a particular record based on multiple criteria, such as highway, county, date - any combination of about a dozen fields, some of which use ranges and some which accept approximate matches. So I designed a screen where they enter just the info that they want for their criteria, click on a button and a list of qualifying permits comes up. Then they can click on any one of the permits and it will open the editing screen showing the selected permit. Everything has been working fine for the last three years.
Now it seems that some users that have been upgraded to 2007 are having trouble when they open the edit screen directly in that it has retained the filter from the last search, so they don't get all the records. (It still works fine for the 2003 users.) I tried putting the ME.FilterOn = False statement in the load event, but then it doesn't even filter when it's supposed to.
Any ideas? I thought about trying to use a global variable to determine whether to set the FilterOn property, but I don't know how to get global variables to work.