Somehow my forms keep thinking that they have a filter that causes all my data to disappear. This happens after the first time I open the form and go to design view. Once I do that this mysterious filter pops into existance and won't go away.
When this happens no data is shown until I manually go to Records -> Remove Filter/Sort. Once I click that the data shows up as normal, but only for the time you are currently looking at it. If you close the form and re-open that filter is back and no data is shown.
Nowhere in my code do I tell it to filter. No events tell it to filter. In the properties of the form there is nothing in the Filter property.
If I programmatically try and remove filters and sorts in the ****** or OnOpen using the below code it does not work.
Changing the recordsource does nothing as well.
Searching the net I found mention of this and it said to disable Name AutoCorrect, compact/repair, decompile the database, then compact/repair again. This did not help unless I didn't decompile the database properly.
Does anyone have any other ideas on how to get rid of this mysterious filter that doesn't exist? I really don't want to tell the users that they have to manually remove filters in order to see their data.
Also, any solution I use must not keep the user from doing their own filtering or sorting of the data.
When this happens no data is shown until I manually go to Records -> Remove Filter/Sort. Once I click that the data shows up as normal, but only for the time you are currently looking at it. If you close the form and re-open that filter is back and no data is shown.
Nowhere in my code do I tell it to filter. No events tell it to filter. In the properties of the form there is nothing in the Filter property.
If I programmatically try and remove filters and sorts in the ****** or OnOpen using the below code it does not work.
Code:
If Me.FilterOn = False Then
Me.Filter = ""
Me.OrderBy = ""
End If
Changing the recordsource does nothing as well.
Searching the net I found mention of this and it said to disable Name AutoCorrect, compact/repair, decompile the database, then compact/repair again. This did not help unless I didn't decompile the database properly.
Does anyone have any other ideas on how to get rid of this mysterious filter that doesn't exist? I really don't want to tell the users that they have to manually remove filters in order to see their data.
Also, any solution I use must not keep the user from doing their own filtering or sorting of the data.