Consulting

Results 1 to 3 of 3

Thread: Code for printing

  1. #1
    VBAX Regular
    Joined
    Nov 2018
    Posts
    41
    Location

    Code for printing

    Can we define the no. of copies of a report/form to be printed through code?

  2. #2
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    You can use the docmd openreport to open the report in print preview mode and then use docmd printout to print a number of copies and then docmd close to close the report.

    Or you can set a loop to count how many copies you want and then use domcd openreport in normal mode which sends it directly to the printer with no print preview.

  3. #3
    VBAX Regular
    Joined
    Nov 2018
    Posts
    41
    Location
    Quote Originally Posted by OBP View Post
    You can use the docmd openreport to open the report in print preview mode and then use docmd printout to print a number of copies and then docmd close to close the report.

    Or you can set a loop to count how many copies you want and then use domcd openreport in normal mode which sends it directly to the printer with no print preview.


    Thanks a lot!!!!!!!! GOD BLESS YOU!!!!!!!!!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •