help!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vikz

    help!

    hello..im new to this group and i need some help with my work
    im trying to find code that will allow me to print a microsoft access
    table in vb
    does anyone know the code?

  • Tom van Stiphout

    #2
    Re: help!

    On 6 Apr 2006 13:14:25 -0700, "Vikz" <vikesh.barchha @googlemail.com >
    wrote:

    Create a report based on that table. The report wizard will help you
    create it.
    -Tom.

    [color=blue]
    >hello..im new to this group and i need some help with my work
    >im trying to find code that will allow me to print a microsoft access
    >table in vb
    >does anyone know the code?[/color]

    Comment

    • inkman04

      #3
      Re: help!

      Perhaps another way is to put the following code behind
      a button on your form.

      DoCmd.OpenTable "TableNameH ere"
      DoCmd.RunComman d acCmdPrintPrevi ew

      This opens the table desired and then previews
      the "report" before printing. If you want it to print
      straight away without viewing, change
      "acCmdPrintPrev iew" to "acCmdPrint ".

      When the printing is done, close the open table.
      There is more code that can be used to do what
      is needed, this is just a quick and dirty method.

      Regards

      Comment

      Working...