Below is an simple example of vb associated with a command button (Print)
Option Compare Database
Private Sub PrintRecord_Click()
On Error GoTo Err_PrintRecord_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection
Exit_PrintRecord_Click:
Exit...