i want to print my access form page with its details. i have got the following code and now i want to put this code to the on click event...
Code:
Private Sub CommandBtn_Click()
Dim MyForm As Form
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, MyForm.Name, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
End Sub
Comment