By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,961 Members | 1,333 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,961 IT Pros & Developers. It's quick & easy.

Display data problem in Crystal Report

100+
P: 123
Hi,

I have passed ID from VB to crystal report 8. Value is getting passed correctly. Now I want to display records of that ID only. But I am getting all the records in Crystal Report.

What code do i need to write in Crystal Report so that it display records of passed ID only.

Kindly let me know.
Apr 18 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 375
Hi,

I have passed ID from VB to crystal report 8. Value is getting passed correctly. Now I want to display records of that ID only. But I am getting all the records in Crystal Report.

What code do i need to write in Crystal Report so that it display records of passed ID only.

Kindly let me know.
I have worked on a very old version and this was the code. Of course it may not be relevant now. But all i hope is you atleast will have a idea and you may change it to the new format
[HTML]CrystalReport1.ReportFileName = "c:\emp.rpt"
'This will open your report and emp.rpt is the name of the report
CrystalReport1.SelectionFormula = "{employee.pin}='" & txtEMPID.Text & "'"
'Here {employee.pin} is the field
CrystalReport1.Action = 1
'This of course will print your report
[/HTML]

Regards
cmrhema
Apr 19 '07 #2

100+
P: 375
Look out for this link for any help in crystal reports

http://support.businessobjects.com/communityCS/TechnicalPapers/apps_rdc.pdf
Apr 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.