I want to create a button on a form in Access 2010 that, when clicked, prints the current record/view of a form. I have tried various VBA scripts. Some print all records, others print partial parts of the form, but not the whole form.
If I hit Ctrl-P, then select "Selected Records", then click OK, it prints the current record/view of the form just fine.
What code can I put in the On Click event prodecure to do the same thing as Ctrl-P, "Selected Records", and "OK" without the user having to do all that?