command button code

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hello. I was wondering if anyone could help.

I need to have a command button within a form which prints
2 copies of a report, for the specific record displayed on
screen.

The Command button wizard lets you 1) create a button to
print the current record ( basically a screen print) and
2) create a button which allows you to print the report
(the problem being that the button then prints the report -
one for every single record in the database!)

Is there anyway to create an amalgamation of these two
peices of code to do what I need?

Any help is greatly appreciated.

Tim
 
Use the code from the "first" button.

It will contain a step for DoCmd.OpenReport. In that line, you'll see
acViewPreview word. Change this word to acViewNormal.
 
Back
Top