Print current record on specific report

spectraflame

Well-known Member
Joined
Dec 18, 2002
Messages
830
Office Version
  1. 365
Platform
  1. Windows
I have a form that allows for entry of service order information. I currently have a print button at the bottom of the form, but when I click it, it is printing the form that is open which I guess that it what is suppose to be doing.

What I would like to do is to print the current record information on a specific report that I have created. I would still like to have a print button at the bottom of the entry form screen, but I need the record printed like the report instead of like the form layout.

Does this make sense?
Matthew
 
If WorkOrdertbl is Numeric try this one :-
DoCmd.OpenReport "WorkOrderrpt", A_NORMAL, , " [WorkOrdertbl] = " & [Forms]![WorkOrderfrm]![WorkOrdertbl]


If it is text then try this :-
DoCmd.OpenReport "WorkOrderrpt", A_NORMAL, , " [WorkOrdertbl] = '" & [Forms]![WorkOrderfrm]![WorkOrdertbl] & "'"

HTH

Peter
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,221,813
Messages
6,162,126
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top