Solved

Using VB Reports without Data Environment

Posted on 2002-05-07
4
153 Views
Last Modified: 2012-06-27
I have a relational database that has 3 tables. The tables are as follows:

1. Quotation
============
QID
Date
Customer

2. Repairs
==========
RID
Date
Amount
QID

3. Fitments
===========
FID
Date
Amount
QID

The primary keys of the tables are QID, RID, and FID. QID in tables 2 and 3 is a foreign key to participate in the relationship with table 1.

I need to produce a report that shows, for each quotation: All the repairs and fitments that were done using vb code. I don't want to use the Data Environment/Designer to produce the report. The report should show the Quotation details followed by a grouped list of all repairs and a grouped list of all fitments, all on one page. It should compute the sum of all repairs and all fitments and put the total at the bottom of the report.
0
Comment
Question by:bmatumbura
4 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6993584
looks like homework.
0
 
LVL 6

Expert Comment

by:OlegP
ID: 6993602
Use Excel-object
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 6994045
In order to design a report with VB's Data Reports you must use the Data Environment.  Once it is designed, you can then remove the Data Environment and bind the report directly to the recordset.

Anthony
0
 
LVL 11

Author Comment

by:bmatumbura
ID: 7008388
Sorry for the late response: thought more solutions might come.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA: Add rows to listbox based on criteria 7 73
message box in access 4 41
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 47
Excel Automation VBA 19 33
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

910 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

22 Experts available now in Live!

Get 1:1 Help Now