Solved

urgent !!!!!! crystal report

Posted on 1998-12-12
9
816 Views
Last Modified: 2012-08-13
question 1) using next({some_fields}) i would be able to get the 2nd record..any way to get the third record or the fourth..

question 2) in the case of 1 to many relationship, how can i  sum a repeating fld only once ?eg ,
Invnum    Cost   Parts
------------------------
1001      0.10    10
1001      1.11    10
1001      2.00    10
1002      0.09    11
1003      0.90    12
INVNUM & PARTS are from the parent table
COST is from the child table
and INVNUM is the link betw these 2 tables ... INVNUM is being repeated in the child table ....

the total for INVNUM 1001 should juz b 10 but i get 30....but i get 53....any ideas ?
0
Comment
Question by:wenchang
9 Comments
 
LVL 1

Expert Comment

by:zivf
Comment Utility
as for your 2nd question: if you create a group for a field that repeats, it will be counted only once for summaries.
0
 

Author Comment

by:wenchang
Comment Utility
i have created a group for the field now but if i try to sum up the fields in the grand total section it will still calculate all the records instead of the figues on the report only.
0
 

Expert Comment

by:tapsbin
Comment Utility
Try to mark the Suppress Duplicates flag of the field. I think
it won't consider the records not getting printed on the report.

Try it out...

tapsbin

0
 

Expert Comment

by:SkyWolf
Comment Utility
Sum report fields instead of Database fields .....
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:wenchang
Comment Utility
that problem is now solved....i decided to user another way to do the report instead....it's a new 1 now...
when i print a report using VB it has this "Run  Time Error 20000" ...the ironic part is, the msg is "No Error"....what the hell is this...is there supposed an error or wat...help!!!!!

in my report i have included subreports as well..could that have caused the error and when i preview the report in crystal report itself there's a "Dictionary integrity error"...something like that...
wat the cause of these error???? thanks a million.....

0
 

Author Comment

by:wenchang
Comment Utility
why do i get a "cannot find sql server" error when i try to call to call a report from VB...the report contains several subreports but when i previewed it in CR,it's ok...
0
 
LVL 7

Expert Comment

by:Inteqam
Comment Utility
try the coonect property
0
 

Expert Comment

by:lmartin080698
Comment Utility
"can not find sql server"
i experienced this problem also.  there is a relationship
between the Crystal DB Driver and the connect property.
To remove the error, in Crystal, choose Database--Change Database Driver.  Change the driver from ODBC to SQLServer.
Then change your Connect property for the Crystal OCX so that
the Server paramater says "SQLServer"
I called crystal about this.  you can too.  by the way i spoke
to Juaquin if it helps.
0
 
LVL 7

Accepted Solution

by:
Inteqam earned 500 total points
Comment Utility
when you get 30 , try to divide it by the number of  ones has 10 value

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

11 Experts available now in Live!

Get 1:1 Help Now