Print current record displayed in the form

I have a command button in the footer of a form.  The form is Display View = Single Page.

Even though the form has several records that can be navigated to, I want to print JUST the record being displayed.  

What would the onclick code of the command button be to accomplish this?
SteveL13Asked:
Who is Participating?
 
Phillip BurtonConnect With a Mentor Director, Practice Manager and Computing ConsultantCommented:
Try:

    If Me.Dirty Then
       Me.Dirty = False
    end If
    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.PrintOut acSelection
0
 
Rey Obrero (Capricorn1)Commented:
create a report with recordsource based on the recordsource of your form then use this codes

docmd.openreport "NameOfReport", acviewNormal,, "[IdfieldName]=" & me.txtIdfield


change [IdfieldName] with actula name of the field
change txtIdfield with actual name of the control
0
 
SteveL13Author Commented:
I actually just want to print the form with the current record data included.  I realize that a report would be better looking.
0
 
Rey Obrero (Capricorn1)Commented:
access report is not really for printing, you may not like the result.
0
 
Rey Obrero (Capricorn1)Commented:
oops, that should be

access FORM  is not really for printing, you may not like the result.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.