|
Home > Archive > MS Access database support > April 2006 > help!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| 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 2006-04-07, 3:44 am |
| 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.
>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?
| |
| inkman04 2006-04-07, 1:31 pm |
| Perhaps another way is to put the following code behind
a button on your form.
DoCmd.OpenTable "TableNameHere"
DoCmd.RunCommand acCmdPrintPreview
This opens the table desired and then previews
the "report" before printing. If you want it to print
straight away without viewing, change
"acCmdPrintPreview" 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
|
|
|
|
|