Menu processing with VB

I put two buttons on my template that I can use to control processing.

Each of these has a click event that was coded in Visual Basic. Each of the click events simply opens something. In this case the first button opens a form and the second button opens a query. Clearly you can open other things as well.

Option Compare Database 

 Private Sub cmdOpenQuery_Click() 
     DoCmd.OpenQuery "majorlink" 
 End Sub 

 Private Sub cmdOpenStu_Click() 
     DoCmd.OpenForm "Student" 
 End Sub