Crystal Reports 11.5 select all records for numeric field

Hi.  I've been trying to figure out this issue but I think I'm making it overly complex.  I want to select all records for a journal entry based on user input for a numeric field.  

The selection criteria I use currently only works for one or more journal numbers:
 {tglTransaction.JrnlNo} in {?JournalNo}.  

How do I make this work for "All records"?  I have no problem using wildcards and such for strings but can't make the leap in how to do it based on number fields.  I want the user to input one or more journal entry numbers, or something akin to "*" for all journals, and have the data set filter for that input.  

Thanks in advance for your help.
Joe DAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Try this idea

Pick a value say 99999 to represent all.
Change the prompt to
     "Enter a list of values (Use 999999for all): "

Change the selection criteria to

{?JournalNo} = 999999
{tglTransaction.JrnlNo} in {?JournalNo}

Open in new window


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
Joe DAuthor Commented:
Thanks for the quick reply  I see where you're going with this but I don't understand what goes in the "then" part of the statement for selecting all records:

if {?JournalNo} = 999999
   Then ??????
   Else {tglTransaction.JrnlNo} in {?JournalNo}

What's the equivalent of the string selection "*" for number fields?
You can use exactly what I gave you or in your method use TRUE

if {?JournalNo} = 999999 Then 
    {tglTransaction.JrnlNo} in {?JournalNo}

Open in new window

Joe DAuthor Commented:
Thank you.  I was expecting to have the parameter used in the selection of all records.  Now that I understand that the 999999 has nothing to do with selection at all, what you did this makes perfect sense.
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
Crystal Reports

From novice to tech pro — start learning today.