Place an epibutton on the form. Then use the Event Wizards to the button click event like so…
In the event handling code section, insert the code Jose provided in the above post. (Make sure you change the baqDataView to yours). Also make sure you add the “using” statement to the top.