I have a form with 3 buttons that select 3 views of the data - All data, Archived data and Live data in a subform view. A pop-up form is used for detailed searches but only searches on all of the data. As the existing view on the main form could be any one of the 3 main form button options, I am looking at how to switch the focus and action (as if the button is pressed) to the All Data button before opening the Search form.
I have a notion to set the properties of the button appearance (Pressed Backcolor...etc) and then use the vba routine to ensure that the action of the button is replicated before opening the search form. But could anyone suggest other methods?
I have a notion to set the properties of the button appearance (Pressed Backcolor...etc) and then use the vba routine to ensure that the action of the button is replicated before opening the search form. But could anyone suggest other methods?