Solved

Limiting records for sample report in Crystal Reports

Posted on 1997-12-23
2
189 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
2 Comments
 
LVL 8

Accepted Solution

by:
mrmick earned 30 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now