[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

pasing Null Values on Formula field

Asked by ISKPatel in Crystal Reports Software

Tags: formula, null, crystal

dear All
i m using Crystal report 8.5 in .net C#. i have a problum in pasing Null formula field in the where clause...
my Crystal Qurey is:
SELECT
    Vehicle_Information."Reg_No",
    Colour_Information."Colour_Name",
    Customer_Information."Cust_FirstName", Customer_Information."Cust_MidName", Customer_Information."Cust_LastName", Customer_Information."Cust_Off_Name", Customer_Information."Is_Cooperate",
    Make_Information."Make_Desc",
    Model_Information."Model_Name",
    Registration."Install_Date", Registration."Reg_Date", Registration."Transfer_from",
    Vehicle_Category."Cat_Descr",
    Bas_Equipment."Descr",
    Location."Location_Name"
FROM
    TBL_Tech_Activity INNER JOIN                        Trakker.dbo.tbl_GatePass ON TBL_Tech_Activity.Activity_ID = tbl_GatePass.Activity_ID RIGHT OUTER JOIN                        Trakker.dbo.Vehicle_Information Vehicle_Information INNER JOIN                        Trakker.dbo.Customer_Information Customer_Information ON Vehicle_Information.Cust_ID = Customer_Information.Cust_ID INNER JOIN                        Trakker.dbo.Make_Information Make_Information ON Vehicle_Information.Make_ID = Make_Information.Make_ID INNER JOIN                        Trakker.dbo.Colour_Information Colour_Information ON Vehicle_Information.Colour_ID = Colour_Information.Colour_ID INNER JOIN                        Trakker.dbo.Registration Registration ON Vehicle_Information.Reg_No = Registration.Reg_No LEFT OUTER JOIN                        trakker.dbo.Vehicle_Category Vehicle_Category ON Vehicle_Information.Veh_Category = Vehicle_Category.Cat_Id LEFT OUTER JOIN                        Trakker.dbo.Model_Information Model_Information ON Vehicle_Information.Model_ID = Model_Information.Model_ID INNER JOIN                        Trakker.dbo.Location Location ON Registration.Install_Location = Location.Location_ID ON Trakker.dbo.tbl_GatePass.Reg_No = Registration.Reg_No                         LEFT OUTER JOIN                        trakker.dbo.Bas_Equipment Bas_Equipment ON Registration.Product_install = Bas_Equipment.Equip_ID                      
WHERE
    Registration."Reg_Date" >= {ts '2007-02-01 00:00:00.00'} AND      Registration."Reg_Date" < {ts '2007-02-07 00:00:00.00'} AND      Vehicle_Information."Status" = 'A' AND      (tbl_GatePass. "Is_Cancel" = 'N')   OR (tbl_GatePass. "Is_Cancel" IS Null)    
ORDER BY
    Location.Location_Name ASC, Bas_Equipment.Descr ASC, Vehicle_Category.Cat_Descr ASC
this query working fine in crystal report (preview) with "(tbl_GatePass. "Is_Cancel" IS Null)" clause
but when i use the folowing:

selFormula = "{Registration.Reg_Date} >= date(" + txtFromDate.Text.Substring(6) + "," + txtFromDate.Text.Substring(3,2) + "," + txtFromDate.Text.Substring(0,2) + ") AND {Registration.Reg_Date} <= date(" + txtToDate.Text.Substring(6) + "," + txtToDate.Text.Substring(3,2) + "," + txtToDate.Text.Substring(0,2) + ") AND {Vehicle_Information.Status} = 'A' AND {tbl_GatePass.Is_Cancel} = 'N' OR {tbl_GatePass.Is_Cancel} IS NULL "

in c# .net they gives an error
How can i pass IS NUll in where clause in Crystal report

a waiting for replay
[+][-]02/18/07 08:01 PM, ID: 18560969Accepted Solution

Your question has an Asker Certified™ answer! ISKPatel verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zone: Crystal Reports Software
Tags: formula, null, crystal
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 2
Solution Grade: C
 
[+][-]02/07/07 05:42 AM, ID: 18484671Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/07/07 06:55 AM, ID: 18485266Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/07/07 08:43 PM, ID: 18491236Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/07/07 09:13 PM, ID: 18491316Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/07/07 09:31 PM, ID: 18491365Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/08/07 06:14 AM, ID: 18493675Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/09/07 03:15 AM, ID: 18500450Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/09/07 04:37 AM, ID: 18500753Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/10/07 09:12 AM, ID: 18507631Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/07 08:45 PM, ID: 18512975Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/07 10:05 PM, ID: 18513199Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/12/07 02:29 AM, ID: 18513933Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/22/07 06:18 AM, ID: 18587587Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100308-EE-VQP-140
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.