Display specific rows in crystal report vb.net - vb.net

I'm having a problem on my crystal report. Is there any way on how can I display specific rows in a crystal report? For example all records with an ID of 00234 will be displayed in a full crystal report. Is there a way?

Use Section Expert.
Go to Report -> Section Expert. Select the Details section on the left side. Click the Formula icon beside the Suppress option on the right, and enter a formula in the editor. Rows that evaluate to True will not appear on the report. If you enter [ID] <> 00234, then only rows with ID = 00234 will appear on the report.

Related

Open Report Based on Multiple Combo Box Selections (Access, VBA)

I have a set of reports stored in Access, and I am trying to generate a specific report based on multiple combo box selections and a "run report" button on a form.
For this example, Combo Box 1 = Location, and Combo Box 2 = Report Type.
Suppose I choose Toronto from Location, and Sales from Report Type. This means I'd like to generate the Sales Report for Toronto.
I have two issues - 1 major and 1 minor.
Major issue: I can currently only generate reports based on 1 combo box selection. My code is as follows:
DoCmd.OpenReport Forms!Form1!Loc, acViewPreview, , "[Loc]='Toronto'"
In order for this to work, I would need to have my sales report named as "Toronto". For the purpose of checking the code, I did that and it worked. However, I am trying to use multiple combo boxes and need more complex naming for my reports. How can I make it so that the code pulls the selection from multiple combo boxes and generates the corresponding report?
Minor issue:
When running the report, I get a popup message that asks me to specify location again:
location popup
How can I prevent this popup from appearing?
Any help is greatly appreciated!!
Are you using a query ? is the best option to do that.
that box that pops up is because you are trying to open the report but the data to the field "loc" is missing.

How to program crystal report to lookup a record in a table

i Have a Table with Fields
Material Number
Order Code
Supplier Code
Description
I have a crystal reports rpt file that i manually enter all the information to generate labels.
I am trying to program this using the built in formula editor, so when i enter the Material Number (which is a unique code) it will automatically display other 3 relevant fields.
I have tried few formulas in the formula editor without any luck.
can anyone help?
relliK
UPDATE
#Siva - I have added the table for clarification
i simply want a lable printed with only one user input being the Material Number, and then the code/fomula in crystal reports to fetch the other data based on the Materila number and produce the label.
thank you for you interest in this issue.
UPDATE
#Siva - I have added a sample label, i would only want to enter 20506871 as Material and the other data fields to be pulled from excel
not sure if i can use parameter fields and/or i would like some help on programming the parameter fields

How to achieve this in crystal report?

How to do this in crystal report with sub-report
the image above is from excel and that's what im trying to achieve..and here's what i do in crystal report
and after i run it..the result is devastating..lol here's what it looks like
the sub-report is just keep on repeating..lol how to fix this ? i already set the sub-report link id's..it's all good but the only problem is that its keep on repeating where what i want is to only show the sub-reports content if the id's is match..btw im using vb.net for the project
Don't put it in the Details Section. I suggest you put it in your Report Footer Section or Group Footer Section (based on which group you are summarizing). Putting it in the Details Section will repeat the Sub Report depending on how many records you show in that area.

Using CR subreports for displaying two distinct reports in one blank main report

I have written a sql query for a view that return some information but when grouping in a CR report some data gets mixed and exact data is lost. what i did is to create two reports when testing, each report return the data i want ( one report for canceling fees and other for earnings ). I then had the idea to create two subreports for each correct report and display both of them in a main report. both report use a SQL view and have formula fied which filter some dates.
When i try to display those subreport in a report all i get is a blank report with no data. i tried to link those subreport with a field but eventough. no data was shown.
Could someone point me some track for getting this work ?
Thank you in advance

I need to set a where condition in crystal report through field formula

I need to set where condition in crystal report like
count {table.support} where ({table.support} = "others")
support
-------
others
others
myself
parent
others
The result should be 3.
How to do this in crystal report? I'm new user of crystal reports.
The record-selection formula should be:
{table.support} = "others"
Anything you place in record selection formula will be added in where condition by crystal reports.. so place your require condition in Record Selection Formula.