Solved

Limiting records for sample report in Crystal Reports

Posted on 1997-12-23
2
195 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

696 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