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

parameter populated but obtainselect cant see it....

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
Hi all,

i'm having real problems with my code.
I have entered a parameter named NewReportApp::param_program .

in my obtainselect statement I have some script:

If NewReportApp::param_program <>0 Then
whereStr = "WHERE prog.id (+) = tsk.prprojectid AND tsk.prexternalid (+) = prj.unique_name AND prog.is_program = 1 and prog.ID in (SELECT ID FROM ODF_CA_PROJECT WHERE DSTI_PROJ_REF = '" & NewReportApp::param_program & "')) prog "

Else
whereStr = "WHERE prog.id (+) = tsk.prprojectid AND tsk.prexternalid (+) = prj.unique_name AND prog.is_program = 1 and prog.ID in (SELECT ID FROM ODF_CA_PROJECT)) prog "

End If


when I have entered a value, it skips into the 'Else' section.
I cannot work ou why.
I've included a field in the before section of my report, to show the parameter value and there is definitely a value in there..
can anyone suggest why this might be happening?

 
Have you tried entering:

ShowFactoryStaus(NewReportApp::param_program)

to see the value being tested?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top