Solved

Limiting records for sample report in Crystal Reports

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 65
JSON Response and request in VB6 application 11 594
Formula problem with Excel attachment 6 39
checkbox to hide entire section 10 42
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 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