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

Adding additional parameters

Status
Not open for further replies.

cbolton652

Technical User
Mar 11, 2004
3
US
I am using Crystal v9. I am trying to add a new criteria to prompt users when the report is run. Users are currently prompted for the date and I want to add a prompt for product. I went the insert>field object>and added the new parameter however it still does not show in the prompt. I also added this to the select expert and still no prompt. HELP!!!!!!!
 
Are you able to see it under the paramaters in the field explorer? Secondly please share your formula you have used for the parameter. You might also want to show the expected output and some sample data.

Kchaudhry
 
Thanks for your reply. And also, I am on 8.5 not 9. But yes I can see it under field explorer > parameter field. This is how my SQL view looks. The date prompts but not the product id

WHERE
vwNCTA_ExpoRevenueByCompany.OrderDate >= {ts '2004-03-11 00:00:00.00'} AND
vwNCTA_ExpoRevenueByCompany.OrderDate < {ts '2004-03-12 00:00:00.00'} AND
vwExpos.ProductID > 0
 
Please post your Record Selection Criteria by copying and pasting the code under Report, Edit Selection Formula, Record.

My guess is that you haven't actually included the Product parameter in the selection criteria.

It should be something similar to this:
Code:
{vwNCTA_ExpoRevenueByCompany.OrderDate} = {?DateParm}
AND
{vwExpos.ProductID} = {?ProductParm}

~Brian
 
Thanks Brian, here it is. I used >0 to prompt for any code

Record Selection Formula Editor view.

{vwNCTA_ExpoRevenueByCompany.OrderDate} >= {?StartDate} and
{vwNCTA_ExpoRevenueByCompany.OrderDate} <= {?AsOfDate} and
{vwExpos.ProductID} > 0
 
You are referencing the field name not the parameter. You might want to try what Brian suggested in his post.

{vwNCTA_ExpoRevenueByCompany.OrderDate} >= {?StartDate} and
{vwNCTA_ExpoRevenueByCompany.OrderDate} <= {?AsOfDate} and
{vwExpos.ProductID} = {?ProductParm}

Please try this and post your results.

Kchaudhry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top