Avatar of radersolutions
radersolutions
 asked on

Crystal Reports - filter by user input

I created a Crystal Report and it prompts the user to choose the date they want to start from.  Ex. Show me when someone changed this field on or after the date they select.  I cannot seem to have it filter for the date range.  It is returning every time the field was ever changed (not >= the date the user selected.

How would I filter the results based on the user input
Crystal Reports

Avatar of undefined
Last Comment
dougvarga

8/22/2022 - Mon
dougvarga

Paste your record selection formula
dougvarga

That should have read:

 POST your record selection formula!
radersolutions

ASKER
I have a parameter named @AsOfDate
I tried going to Report>Select Expert and tried making a formula {Audit.AuditDateTime} => @AsOfDate, but it does not like that.  I want the results of the report to filter all changes made on or after hte date selected by the user.  

(I am a beginner for Crystal Reports)
parameter.bmp
Your help has saved me hundreds of hours of internet surfing.
fblack61
dougvarga

Ok.  Goto the report menu --> Selection Formulas --> Record

Then post what you see there.
radersolutions

ASKER
{Audit.AuditType} = 51

This is a filter I already have in place to only return that specific audit type
ASKER CERTIFIED SOLUTION
dougvarga

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
radersolutions

ASKER
This worked!  It looks like i was forgetting the part Date(...).  Also, I am getting a 9 duplicates of each result.  Is there a way to not filter for duplicates?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
radersolutions

ASKER
Perfect!  Any idea how to not show duplicates?  
9xresults.bmp
dougvarga

Goto database --> Select Distinct Records