[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Limiting records for sample report in Crystal Reports

Posted on 1997-12-23
2
Medium Priority
?
197 Views
Last Modified: 2010-08-05
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"

Any ideas?

Thanks in advance!
0
Comment
Question by:dcampagna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
mrmick earned 120 total points
ID: 1446951
Sure, just create a temp recordset and put x number of records into the temp recordset.  Use the tempory table to generate the report.  
0
 

Author Comment

by:dcampagna
ID: 1446952
Thanks, I'll give it a try!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question