Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Access Reports

Status
Not open for further replies.

rushworld

Programmer
Aug 13, 2002
6
0
0
AU
I need information on printing an MS Access Report through a VB command line/s.
What is needed is a query to select one record and print on one page, can this be done easily?
Also any options to output to Print Preview, or a text file, or something. Printing is the main portion though.
Thanks for any help.
 
rushworld prob the easy way is to create the repot in your access backend, for the query side you can create that inside the report its self by going to
Design -> report properties -> record source -> ...

create the report but only save it on the way out this way it will be embedded into the report and it will not create an external query.

then in VB create a button that prints the report.
using the access line.
DoCmd.OpenReport "reportname", acNormal

Hope this helps
Zero Anarchy
 
Check out the SnapShot viewer from the MS Site ( [/b][/i][/u]*******************************************************
[sub]General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top