Hi Jonathan and welcome to the forum!
You could do this with either rules or code, but rules would probably be the easiest to implement. First, drop your button wherever you want it to be displayed, and then double-click it. Click Rules, and then click Add. Name it something descriptive and then click Add Action. You want this to fire all the time, so don't worry about adding a condition. For the first action select "Query a data source" from the drop-down menu, choose the data source to be queried, and then click OK. Now, click Add Action again, but this time choose "Switch to another view", select the view you would like to switch to, and then click OK until you are back to where you started.
Hope this helps!
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge