I have an option group that filters a subform. It is filtering correctly except that when I select a value and close the database, it filters on that same value instead of the default when I open the database again.
So for example -- the default is All. I select Pre Installed and the subform is filtered correctly. I close the database and re-open. The subform is still filtered for Pre Installed records although the All button is selected correctly.
Here is the code for the on click event. The Accounts query is an append query. I am trying to work on someone elses DB and it has been over 10 years since I had VB. I know it is probably something simple.
Thanks.
So for example -- the default is All. I select Pre Installed and the subform is filtered correctly. I close the database and re-open. The subform is still filtered for Pre Installed records although the All button is selected correctly.
Here is the code for the on click event. The Accounts query is an append query. I am trying to work on someone elses DB and it has been over 10 years since I had VB. I know it is probably something simple.
Code:
CurrentDb.Execute ("Delete * from AccountList")
DoCmd.SetWarnings False
DoCmd.OpenQuery ("QryAccounts")
DoCmd.SetWarnings True
Forms!Default!NavigationSubform.Requery
Comment