I am using a CrystalReport control in my program. I would like to give the user an opportunity to view a sample report consisting of x (user's choice) records. Is there a way to pull the first (or any) x records from the database? I've tried the following statement in my program, but it returns a run-time error message "This function cannot be used because it must be evaluated later."
crwReport.SelectionFormula = "RecordNumber <= x"
Thanks in advance!