Passing two parameters in SSRS report to get pop up window - error.

I am trying to pass two parameters through my report to get a report window to pop up. I am getting the following error and cannot see my issue. Perhaps tired eyes and could use a hand.

Name 'PATIENTVISITID' is not declared.

="javascript:void" &"'"& Globals!ReportServerUrl &"/Pages/ReportViewer.aspx?"

&"/Billing Reports/Jeffs/Testing Folder/Sub_rdl_Detail_QuestionAnswerChecklist&rc:Parameters=False&rc:Toolbar=False
&PATIENTPROFILEID="& Fields!PatientProfileId.Value & PATIENTVISITID="& Fields!PatientVisitId.Value &"
','DetailsWindow','left=300,top=180,width=850,height=365,status=no,menubar=no,scrollbars=yes,location=no'" & ")"

Open in new window

Jeff SAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
Nitin SontakkeDeveloperCommented:
Is there a double quote (and an ampersand to mark the beginning of another parameter) required here?

& Fields!PatientProfileId.Value & "&PATIENTVISITID=

Open in new window

Nitin SontakkeDeveloperCommented:
I never used SSRS this way, so I don't know, but is use of rc:Parameters=False correct?

If possible, could you not put the whole string in browser window, experiment till it works, copy and paste the string in a text editor and then just encapsulate whole string in double quotes and replace parameters.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

HainKurtSr. System AnalystCommented:
try this

="javascript:void'" & Globals!ReportServerUrl & "/Pages/ReportViewer.aspx?/Billing Reports/Jeffs/Testing Folder/Sub_rdl_Detail_QuestionAnswerChecklist&rc:Parameters=False&rc:Toolbar=False&PATIENTPROFILEID=" & Fields!PatientProfileId.Value & "&PATIENTVISITID=" & Fields!PatientVisitId.Value & "','DetailsWindow','left=300,top=180,width=850,height=365,status=no,menubar=no,scrollbars=yes,location=no')"

Open in new window

Ryan ChongSoftware Team LeadCommented:
Name 'PATIENTVISITID' is not declared.

make sure "PatientVisitId" exists in the data source? >> Fields!PatientVisitId.Value

which mean Fields!PatientVisitId must be referred to a valid field.
nishant joshiTechnology Development ConsultantCommented:
Hi Jeff,

The query string is perfect. not finding any issue.

Please make sure about Report parameters. Report parameters are case-sensitive.

Please refer this url:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeff SAuthor Commented:
HainKurtSr. System AnalystCommented:
I dont think your initial query was "perfect"
can you please post the running code...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.