Solved

Access Reports

Posted on 1998-11-13
5
154 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

18 Experts available now in Live!

Get 1:1 Help Now