Solved

Access Reports

Posted on 1998-11-13
5
157 Views
Last Modified: 2013-11-28
I want to know how I can print or display a report Designed in MSAccess from a VB application.
0
Comment
Question by:gerhd
5 Comments
 
LVL 4

Expert Comment

by:CraigLazar
ID: 1444704
Hi
The easiest tool to use is Crystal reports which ships with VB.
What version of VB are you using ?
I have used Crystal Reports for invoices ,statements graphs and statistics it works well
hope it helps
Craig
0
 

Author Comment

by:gerhd
ID: 1444705
I have tried to use crystal reports but as soon as I select information from more than one table with parameters the first set of parameters is cancelled. If possible i want know how to create a sub report in crystal.

0
 
LVL 9

Expert Comment

by:Dalin
ID: 1444706
gerhd,
You have a couple of other choices.
1. OLE automation, requires Access on the machine;
2. Get a third party OCX, like VSReport.

Let me know if you like the code using OLE automation.
Regards
dalin
0
 
LVL 4

Expert Comment

by:CraigLazar
ID: 1444707
Hi
Have you had a look at vb6 ?
Apparently it now has it's own Report writter
0
 
LVL 3

Accepted Solution

by:
fguerreiro_inix earned 50 total points
ID: 1444708
You must add the reference to the library Microsoft Access 8.0.
In that procedure you declare a variable as New Access.Aplication

When you  do that you create a new instance of Access.
Then you should open the database window like this:
inst.OpenCurrentDatabase Reports.mdb ,False

The 'inst' is the variable that olds the instance  of access.

Next step is to open the report:
inst.DoCmd.OpenReport sReportName , acViewPreview

Hope this helps
Regards
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now