Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Feb 2006
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto print report (2003)

    Hi,

    I currelty build a database. User need to print daily report base on the data be entered. I would like to know if I can set up it as daily auto print. For example, the report will auto print every morning 7:30am from one of network printer that connect with computer. If that is impossible, what else way I can do to make user easy print the reports.

    Regards

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Auto print report (2003)

    If the database remains open all the time, you could use the On Timer event of a form to check the time of day and to print the report if it's 7:30 or past. You'd need to set some kind of flag to make sure the report get printed only once a day.
    This is rather fragile, if an error occurs the On Timer event may stop firing.

    Alternatively, you could create a macro that prints the report and quits again. Then set up a scheduled task in Windows that opens the database with this macro. The command line for the scheduled task would look like this:

    MSAccess "CatabasesMyDatabase.mdb" /x mcrPrint

    where CatabasesMyDatabase.mdb is the path and filename of the database and mcrPrint is the name of the macro.

  3. #3
    4 Star Lounger
    Join Date
    Feb 2006
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Auto print report (2003)

    Thank you so much! I will try it.

Posting Permissions

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