Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4063230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:41:58+00:00 2026-05-20T15:41:58+00:00

I have a Crystal Report with a formula on the page header like this:

  • 0

I have a Crystal Report with a formula on the page header like this:

dim t as string

    t = "DD Waiver Waitlist " 

    if {rpt_xtab_waitlist.CountyName} = "statewide" then
        t = t + {rpt_xtab_waitlist.CountyName} 
    else
        t = t + "for " + {rpt_xtab_waitlist.CountyName} +  " County"
    end if

    formula = t

The problem is not all counties have data for the report, but I still want the page header to contain the county name.

Ultimately, other staff puts a front-end on the report with a combo box for the parameter listing all of the counties, so the parameter UI will not come from Crystal. I can’t just change the parameter to dynamic.

I thought I could use the county name from the parameter instead of the data, but that’s in an array and I can’t figure out how to index it.

I tried:

if {rpt_xtab_waitlist.CountyName} = "statewide" then
    t = t + {?County}( RecordNumber)
else
    t = t + "for " + {?County}( RecordNumber) +  " County"
end if

but it doesn’t print the county name corresponding to the selected county in the group tree.

How should I index a parameter array in a formula?

Thanks for any help,

-Beth

Sample county names:

Anoka
Hennepin
Yellow Medicine

Output I get now:
report with page header function suppressed when they select Yellow Medicine county as their parameter from the list of counties

Output I want to get:
report with page header function returning “DD Waiver Waitlist for Yellow Medicine County”
when Yellow Medicine county selection criteria applied returns 0 rows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:41:58+00:00Added an answer on May 20, 2026 at 3:41 pm

    I don’t think there is a useful index, and for our purposes, they can only select one county as a parameter, so I ended up using the (1) index of the parameter array.

    If anyone knows of a way to derive a meaningful index, please post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a crystal report that is like this: Group By Property.ID Group By
I have a switch statement in a Crystal Report that looks like this: stringvar
I have a Crystal Report that looks like: Date | Person | Ticket |
I have below formula in my crystal report which doesn't work. if({SINGLECASEMULTIPLEASSAY.sSampleName}=P)then val({SINGLECASEMULTIPLEASSAY.sODValue}) The
I have this crystal report, and I want to be able to use it
I have one formula in crystal report, which displays fixed text if the value
For one string field in crystal report i wish to write up formula where
I have a formula @InitVars in the page header which includes the following, and
I have Crystal Report in VS 2008. The report has group header section above
I have a Crystal Report that has a header and a subreport with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.