473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Run Report asks for Parameters it already has?

294 256MB
I'm creating a report that creates a value from AwardedUnits * NetAssetValue, and creates a check using that value (it does a couple other irrelevant things, also.)

I take the Sum() of the awards, and here is the SQL:
Expand|Select|Wrap|Line Numbers
  1. SELECT BenePayoutTbl1.BeneID, 
  2. BenePayoutTbl1.BeneFirst, 
  3. BenePayoutTbl1.BeneLast,
  4.  BenePayoutTbl1.PrimaryBene,
  5.  Sum(BenePayoutTbl1.UnitsRemaining) AS SumOfUnitsRemaining,
  6.  AstBeneficiaryTbl.BenStreet,
  7.  AstBeneficiaryTbl.BenCity, 
  8. AstBeneficiaryTbl.BenState, 
  9. AstBeneficiaryTbl.BenZip,
  10.  [FederalTax] AS Expr1,
  11.  [StateTax] AS Expr2, 
  12. BenePayoutTbl1.NAV_Dt,
  13.  NAV_Tbl.NetAssetValue
  14. FROM NAV_Tbl
  15.  INNER JOIN (AstBeneficiaryTbl
  16.  INNER JOIN BenePayoutTbl1 
  17. ON AstBeneficiaryTbl.BeneficiaryID = BenePayoutTbl1.BeneID)
  18.  ON NAV_Tbl.NAV_Date = BenePayoutTbl1.NAV_Dt
  19. GROUP BY BenePayoutTbl1.BeneID,
  20.  BenePayoutTbl1.BeneFirst, 
  21. BenePayoutTbl1.BeneLast, 
  22. BenePayoutTbl1.PrimaryBene, 
  23. AstBeneficiaryTbl.BenStreet,
  24.  AstBeneficiaryTbl.BenCity, 
  25. AstBeneficiaryTbl.BenState,
  26.  AstBeneficiaryTbl.BenZip, 
  27. [FederalTax], [StateTax], 
  28. BenePayoutTbl1.NAV_Dt,
  29.  NAV_Tbl.NetAssetValue;
  30.  
The query gives me 107 = [SumOfRemainingUnits], however, when I run the report it asks me for [SumOfRemainingUnits].

Anyone have any ideas?
Feb 14 '14 #1
12 1092
jimatqsi
1,271 Expert 1GB
Look at the query behind the report. Is the name of the column [SumOfRemainingUnits]? Either the query, or some object in the report is looking for that field and it does not exist with that name. Perhaps it is renamed in the report recordset.

Jim
Feb 15 '14 #2
mcupito
294 256MB
Yes, it's just a Sum of a field. I checked the spelling and everything seems to be fine.

It was actually [SumOfUnitsRemaining].

Here is the SQL:
Expand|Select|Wrap|Line Numbers
  1. SELECT 
  2.     BenePayoutTbl1.BeneID, 
  3.     BenePayoutTbl1.BeneFirst,
  4.     BenePayoutTbl1.BeneLast, 
  5.     BenePayoutTbl1.PrimaryBene, 
  6.     Sum(BenePayoutTbl1.UnitsRemaining) AS SumOfUnitsRemaining,
  7.     AstBeneficiaryTbl.BenStreet, 
  8.     AstBeneficiaryTbl.BenCity, 
  9.     AstBeneficiaryTbl.BenState, 
  10.     AstBeneficiaryTbl.BenZip, 
  11.     [FederalTax] AS Expr1, 
  12.     [StateTax] AS Expr2, 
  13.     BenePayoutTbl1.NAV_Dt, NAV_Tbl.NetAssetValue
  14.  FROM NAV_Tbl
  15.  INNER JOIN (AstBeneficiaryTbl 
  16. INNER JOIN BenePayoutTbl1 
  17.     ON AstBeneficiaryTbl.BeneficiaryID = BenePayoutTbl1.BeneID) 
  18.        ON NAV_Tbl.NAV_Date = BenePayoutTbl1.NAV_Dt
  19. GROUP BY BenePayoutTbl1.BeneID, BenePayoutTbl1.BeneFirst, 
  20. BenePayoutTbl1.BeneLast, BenePayoutTbl1.PrimaryBene, 
  21. AstBeneficiaryTbl.BenStreet, AstBeneficiaryTbl.BenCity, 
  22. AstBeneficiaryTbl.BenState, AstBeneficiaryTbl.BenZip,
  23.  [FederalTax], [StateTax], BenePayoutTbl1.NAV_Dt, NAV_Tbl.NetAssetValue;
  24.  
Feb 18 '14 #3
zmbd
5,501 Expert Mod 4TB
Yes, it's just a Sum of a field. I checked the spelling and everything seems to be fine
Are you still haveing the issue, or did you find the typo?
Feb 18 '14 #4
mcupito
294 256MB
Hey, zmbd, thanks for the reply.

I am only having the issue when the report using the underlying query (the SQL I posted) is being ran. If I ran the query from the Object list it runs fine and only asks me for [FederalTax] and [StateTax].
Feb 18 '14 #5
zmbd
5,501 Expert Mod 4TB
Double check line 5 in op the "as" name
It does not match the name you subsequently gave for the prompt.

As jimatqsi has pointed out, something on the report-form is asking for this name and it does not match anything within the underlying recordset; thus, the prompt.
Feb 18 '14 #6
mcupito
294 256MB
Okay - I found the fields on the report. If I delete them, the subreports return no data, but if I press "OK" when the parameter box pops up, the data loads fine. Any idea on how to squelch it?
Feb 24 '14 #7
zmbd
5,501 Expert Mod 4TB
Check the properties of the fields.... there's something not set correctly with them and it has to do with the names for the parameters you are being prompted for....
Feb 24 '14 #8
mcupito
294 256MB
The only thing I am seeing is ORDER BY NAV_Date DESC
Feb 24 '14 #9
mcupito
294 256MB
Doh, deleting the Order By worked... -_-
Feb 24 '14 #10
zmbd
5,501 Expert Mod 4TB
It is the little things that will cause the most damage.
That'll be 100KG of Richart or Callebaut Chocolate
(^_^)
Feb 24 '14 #11
mcupito
294 256MB
Haha would you like that served with a warm glass of milk?
Feb 25 '14 #12
zmbd
5,501 Expert Mod 4TB
hmmm... no, they both make Excellent truffles and other wonderful confectionary items... which I am fairly good at making )slobber...and...smakcckingoflipsoundsinthebackgro und(

(O_O)
Feb 25 '14 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Danny J. Lesandrini | last post by:
First, this is _not_ a question about how to get Crystal Reports to run on a client machine. I've got all the merge modules added to the project and it's working fine. The question is about...
2
by: Lloyd Stevens | last post by:
I'm trying to create a report from two queries, one query displays which customers bought a particular product, the quantity and price using the "Enter productID" as parameter While the other is...
14
by: Scott Gorman | last post by:
I have a report with a sub report for an income / expense report for church. My expense report is the sub report. My question is, when I run the report, it prompts me 2-3 times for the parameters...
0
by: Danny J. Lesandrini | last post by:
Didn't get any takers on this post this morning at dotnet.General, so I'm reposting here. First, this is _not_ a question about how to get Crystal Reports to run on a client machine. I've got...
2
by: Bernie Yaeger | last post by:
I'm working with Brian Bischof's excellent 'crystal reports .net programming', but I'm having one problem: I can export to .pdf in code, no problem, using the exporttodisk method, but there appears...
0
by: =?Utf-8?B?TUZD?= | last post by:
Hello, I have a windows application over data form that has a reportviewer control on it. I have several reports defined, each works as expected when they are embedded into the report. On...
2
by: jmborron | last post by:
I have a report in Access 2007 that is populated by a parameter query. My boss wants this report ran for all 250 optoins once a month, saved as a pdf and emailed to the contacts located in a table...
2
by: Audrey Abbey | last post by:
In a nutshell, when I click the PDF export button, from the print preview screen, I am prompted to enter the parameters again. I assume I have skipped a step somewhere that saves the parameter...
4
by: patekos | last post by:
Hi all, I have a report based on a table and i want something that could flag it when it is printed so i can not print it again ? thanks in advave
0
by: Justin K | last post by:
I have an issue with a Crystal Report that I am using in my C# program. I created the report in Crystal Reports XI(R2). The report's datasource is an SQL stored procedure, and contains a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.