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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query on Chart type Report

Status
Not open for further replies.

amtek

Programmer
Mar 1, 2001
5
IN
Hi,

I am having two tables : DrivingLicence and LearnersLicence with DLNo and LLNo as primary keys. I want to generate Count(DLNo) and Count(LLNo) for the particular month selected and show the same in a Side by Side Bar Chart Report (One bar for Count(DLNo) and another for Count(LLNo)).
I am using VB6 and CR 7.0.

Thanking You,

Amit
 
You can do this in V7, but you have to use a "Detail" chart.

This requires an "On Change of" field and 2 "Show Values" fields.

The trick in V7 is that the "On Change of" field has to be the same for all records. You can use any constant. Since your records are for one month you could use a formula like:

Month(YourDatefield) and it would work as an "On Change of" field.

Then you give it your two grand total formulas as the "Show Values" fields.

Let me know how this works. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 

Hi

I tried out with the solution given by you. But it retrieves records for all the months available in the table. I want it for a particular month which is selected in VB application.

Thanx a lot,

Amit
 
All I told you was how to construct the chart. The formula is a field used by the chart. I assumed, wrongly, that the report was already returning one month's records.

The chart will use all of the records in the report each time. You have to limit the records in the report by passing a record selection formula to the report from your app.

Do you have a record selection formula to tell the report which month to select?
What integration method are you using?

Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top