'* Code for button click event to print the current record showing in a form.
'* It prints the form graphically, i.e. WYSIWYG
'* All you have to do is select the printer.
'* Have not tried with Subforms.
Private Sub cmdPrintForm_Click()
On Local Error Resume Next '* This can be improved - it's just to avoid "print cancelled" messages
DoCmd.RunCommand acCmdPrintSelection '* Yep,this prints the current form - you don't have to select it(in Access 2007, anyway).
End Sub

































