Printing a report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaku
    New Member
    • Jul 2008
    • 1

    Printing a report

    I have developed a VB application for my project with MS Access as a database.

    I have design an invoice report in Access and want a button to call and print it in VB. How should I go about it, please advise me thanks.
  • hjozinovic
    New Member
    • Oct 2007
    • 167

    #2
    Hi,

    You can do this:
    1. add a new button somewhere on the form.
    2. Go to VB and in it's On click event put a code like:
    Code:
    DoCmd.OpenReport "ReportName", acPreview
    You can search help on "OpenReport " to learn more about how it works...

    h.

    Comment

    Working...