I have the following lines in my forms OnClose event:
' Make sure to clear any old filters
Me.Filter = ""
Me.FilterOn = False
Me.OrderBy = ""
Me.OrderByOn = False
However, after closing I open the form in design view and whatever the user's last filter and order were are in there. When the user opens the form, the clear all filters isn't enabled indicating there's no filter and if they apply another one, the user is unable to edit any records ( they get a message saying the record is read only if they try to change any fields).
Any thoughts, recommendations? I've tried putting this in the OnLoad event too but it hasn't helped.
Thanks
Lution
' Make sure to clear any old filters
Me.Filter = ""
Me.FilterOn = False
Me.OrderBy = ""
Me.OrderByOn = False
However, after closing I open the form in design view and whatever the user's last filter and order were are in there. When the user opens the form, the clear all filters isn't enabled indicating there's no filter and if they apply another one, the user is unable to edit any records ( they get a message saying the record is read only if they try to change any fields).
Any thoughts, recommendations? I've tried putting this in the OnLoad event too but it hasn't helped.
Thanks
Lution