What is the reason of this error in Crystal Reports? - vb.net

I have a problem with the crystal reports.I have a report in which four tables are bound as source to the tables.In those 4 tables one table database fields are used in the formula fields.When I set that formula field on the report I am getting error this error "Unknown Database Connector Error" in the Preview Report.
Suppose when I remove that field or comment the formula code of that field we are not suppose to get that error.I don't understand that error too.
I have written like this in the formula field
if{students.name} = "" then
else
"Student Name : " + {students.name}
I have googled alot but no use.Can any one help me regarding this ?

I found a solution to install the crystal report for .NET framework 64 bit software.I will be solved :-)

Try:
If Not(Isnull({students.name})) Then
"Student Name : " + {students.name}

Related

DoCmd.Open Report Where Clause Syntax Issues With Multiple Criteria And Strings

New Member Here - Happy to Be With You!
I'm Hoping you can help me with what seems to me to be a syntax issue. I have a report with multiple subreports, all of which are based upon queries. The queries have criteria to prompt the user to [Enter SampleID]. When I run the report, it works correctly but is cumbersome because I am prompted for each criteria individually so I wanted to create a form with a button and an input field for the user to enter a SampleID. Then the code would pull that SampleID and use it to "answer" the criteria prompts. Clearly, what I have done so far is incorrect as I receive a run time error 13 type mismatch...I tried to find guidance as to how to proper syntax for strings, but those edits don't seem to work :(
Here's the start of the current code for your review and insights - it continues on but the syntax is the same throughout. Note that SampleID is a short text string.
DoCmd.OpenReport "DEV_GenRpt_Comp_Info", , , "Samples.SampleID=" & Me.SampleID And "ReportDemos_TestOrderAndSampleReportInfo.Samples.SampleID=" & Me.SampleID And "200_8_Query.SampleID=" & Me.SampleID And "300_Query.SampleID=" & Me.SampleID
Most appreciated!

Error in the expression rdlc

Im getting error for the below expression in rdlc. what is causing error
=IIf(Fields!Name.Value Like "PL*","STREET INTERSECTION","STREET SEGMENT")
the requirement is the value of the text box should be dynamic depending on the item Name("Name" field). If the item Name starts with PL, this value should be "STREET INTERSECTION" if name starts with PS , this Value should be "STREET SEGMENT".
This will work for you.
SSRS supports VBA functionality rather SQL function / syntax.
=IIf(Fields!Name.Value.IndexOf("PL") >= 0,"STREET INTERSECTION","STREET SEGMENT")

Crystal Report Selection Formula

Good Morning! As i was developing my software (School Management) using VS 2010 and SSMS without any problem, until i reached the final stage where i want use a crystal report to print a Student Report. in my software i used Table Adapter to generate the student on datagridview before attempting to print. using
[Me.Assessment1TableAdapter.FillBySession(Me.EMS.Assessment1, cboRSession.Text, cboRClass.Text, cboRTerm.Text, cboeReg.Text]
where i will select Secion, Class, Term, Reg. before i generate the Students List. so Please what is the best way for me to create a Crystal Report because i want add some tables in it for Teacher's comment and i am very new to Crystal Report. Thank you!
I solved the Problem by using Selection Formula which is :
REPORT_SHEET.CrvReport.Enabled = True
REPORT_SHEET.CrvReport.ReportSource = "C:\Users\MUSTAPHA YUSUF\documents\visual studio 2010\Projects\SMS\SMS\Student_CrystalReport.rpt"
REPORT_SHEET.CrvReport.SelectionFormula = "{Assessment.ID}=" + Sol.Text
REPORT_SHEET.CrvReport.Refresh()
REPORT_SHEET.CrvReport.RefreshReport()
REPORT_SHEET.Show()

Error in formula field of crystal reports when no records found

I am working on crystal reports.
I want to show the sum of the record on footer of every page.
so I have added the formula field in crystal reports which have below formula.
whileprintingrecords;
numbervar PageTotl;
if isNULL({Customer.PaidAmount})Then
0
else
PageTotl:=PageTotl + {Customer.PaidAmount}
its gives error below when there are no records present with given criteria.
What kind of changes I have to made in above code, so it can also handle the 0 records.
First, I got the same error, After fixing the formula to the following one, no errors came out:
whileprintingrecords;
numbervar PageTotl;
if isNULL({Customer.PaidAmount})Then
0
else
PageTotl:=PageTotl + ToNumber({Customer.PaidAmount})

crystal report Remaining text does not appear to be part of the formula missing dll

I am getting error: "Remaining text does not appear to be part of the formula" while trying to view the report. As I understand some dlls are missing, because on some xp machines I am not getting any errors, on some I do.
My question would be how do find out which dll's I am missing? Which ones crystal are using for viewing? My formula is very simple for the section:
iif ({PRODUCT.PRODUCTCODE}="LT",true,false);
If add a dll file with the same name in windows folder, I mean replace, do I have to register it anyway?
Thank you.
Suppose if you want display "to date" formula field on crystal report then this type of error is occured. So we need to write the following code in your source code file.
rpt.DataDefinition.FormulaFields["to_date"].Text = "'" + txt_to_date.Text.Trim() + "'"; crystalReportViewer_month_report.ReportSource = rpt;
We need to enclose the txt_to_date.Text.Trim() in between single quote " ' ".