Can you print a tab page on a form in access

Hi Experts,

Is it possible to print a single tab page on a form in access?
I tried saving the one tab page as a report but it appears it wants to use the whole form, not just one tab page.

Who is Participating?
SheilsConnect With a Mentor Commented:
Just create a report with the parameter that you want to display. The you can open it and filter by the record on your form.
hnasrConnect With a Mentor Commented:
You can print a tab page in a report.
Copy the page from the form and paste in the report.
Dale FyeConnect With a Mentor Commented:
I'm with sb9 on this one.  Just create the report from scratch.  Then open your form, selec the tab control, copy it, and paste it into the report (delete any of the tab pages you don't need from the report).  Then copy the RecordSource from the Form and Paste it into the RecordSource of the report.

Then use the OpenReport method with a where clause to only open the report for the record that is currently displayed on your form.  To do this, add a command button to your form, name it cmdPrint.  Then create a Click event that looks like the following.  Make sure to change "reportName" for the name you use when you save your new report.  Also, the WHERE condition I've used is generic.  You will need to change [ID] to whatever you use as the unique field in your table, and me.txt_ID to whatever you have named the control on your form that is bound to that unique field.

Private Sub cmdPrint_Click

    docmd.OpenReport "reportName", acViewPreview, , "[ID] = " & me.txt_ID

End Sub

Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Helen FeddemaConnect With a Mentor Commented:
I agree with sb9 and fyed.  It is rarely advisable to print a form.  Just create a report filtered the same as the tab, and print the report.
patentinvAuthor Commented:
Makes sense!! I'll copy and paste it.

Much appreciated!!

patentinvAuthor Commented:
Thanks Experts!!
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.