?
Solved

urgent !!!!!! crystal report

Posted on 1998-12-12
9
Medium Priority
?
822 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 1

Expert Comment

by:zivf
ID: 1449672
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
ID: 1449673
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
ID: 1449674
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Expert Comment

by:SkyWolf
ID: 1449675
Sum report fields instead of Database fields .....
0
 

Author Comment

by:wenchang
ID: 1449676
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
ID: 1449677
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
ID: 1449678
try the coonect property
0
 

Expert Comment

by:lmartin080698
ID: 1449679
"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 1000 total points
ID: 1449680
when you get 30 , try to divide it by the number of  ones has 10 value

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

649 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