Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Subreport parameter not passed Post Reply Post New Topic
Author Message
StevenM
Newbie
Newbie


Joined: 10 Apr 2013
Location: Canada
Online Status: Offline
Posts: 1
Quote StevenM Replybullet Topic: Subreport parameter not passed
    Posted: 10 Apr 2013 at 9:39am
Hi guys

I have 1 main report, rpt_AP_Cheque with a field called KKDOCM. This needs to be passed to my subreport, rpt_AP_Cheque_Stub, to a parameter field called Pm-rpt_AP_Cheque;1.KKDOCM. This is then used in a Record Selection formula as follows:

CDbl({rpt_AP_Cheque_Stub;1.KKDOCM}) = CDbl({?Pm-rpt_AP_Cheque;1.KKDOCM})

When I run the report, I receive an error as follows:
Error in Formula <Record_Selection>.CDbl({rpt_AP_Cheque_Stub;1.KKDOCM}) = CDbl({?Pm-rpt_AP_Cheque;1.KKDOCM})
This field name is not known.

I'm not sure where the problem is, but thought it may have something to do with changing the report's DB connection properties programmatically(the user is allowed to select different DB environments before we instantiate the report). I failed to look for subreports and update their db connections when first encountering the problem, but have since implemented code to update all subreports.

Any ideas where the problem may be? This is CR version 14.0.4.738 RTM

Tks
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.