• Auto print report (2003)

    Author
    Topic
    #431714

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1011065

      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 “C:DatabasesMyDatabase.mdb” /x mcrPrint

      where C:DatabasesMyDatabase.mdb is the path and filename of the database and mcrPrint is the name of the macro.

    Viewing 0 reply threads
    Reply To: Auto print report (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: