Solved

crystal report 9 filtering records with visual basic 6

Posted on 2004-08-08
5
353 Views
Last Modified: 2010-08-05
I have made a report in crystal report 9 and then I added that report in my visual basic application using the add crystal report from the project menu. My report also contains a sub report. Both the report and sub report return all the records from the tables or view they are connected. I want to filter both the report and sub report to give me the limited result e.g all record from a particular month. How will I do this please help. I am using visual basic 6 with service pack 6, crystal report 9 and sql server 2000
0
Comment
Question by:ShakeelAhmed
[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
5 Comments
 
LVL 2

Accepted Solution

by:
Parsi earned 168 total points
ID: 11749879
You shall set 'SQLQuery'.
For example:
cr1.SQLQuert = "Select * from Q Where Condition"
In which cr1 is your CrystalReport Object, and Q is the name of the query which your report is using, and ofcourse Condition is your Criteria.

Good Luck.
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 166 total points
ID: 11757058
0
 
LVL 1

Assisted Solution

by:keijerjh
keijerjh earned 166 total points
ID: 11788009
Hi,

I've had the same problem.
You should create a parameterized query in your subreport.

Query:
SELECT * FROM ITEM WHERE ITEM_ID='{?ITEM_ID}'
Parameter:
ITEM_ID

Link the parameter ITEM_ID to a field in your main report.
This should do it.

Good luck.
Yelle...
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Starting up a Project

728 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