Advertisement

05.18.2008 at 05:59AM PDT, ID: 23411836
[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!

8.6

SQl and Null Value

Asked by aldhubaib33 in Microsoft Access Database

Tags: , , , ,

hi
i have the follwoing sql in a query
SELECT CountryID, StateID, KindID
, NZ(Round(STR([M2S]),0),"No data") AS [M2 Start]
, NZ(Round(STR([M2E]),0),"No data") AS [M2 End]
, NZ(Round(STR([M2D]),0),"No change") AS [M2 Difference]
FROM (SELECT CountryID, StateID, KindID, Avg(PAStart) AS M2S, Avg(PAEnd) AS M2E, [M2S]-[M2E] AS M2D
      FROM (Select CountryID, StateID, KindID, Price/Area AS PAStart, Null as PAEnd
           From TbMain
           Where (
               (([TBMain.Time]=Forms!FSalesStock!ReportDateStart) OR Forms!FSalesStock!ReportDateStart IS Null)
                   And (((Format([TBMain.Time],"yyyy"))=[Forms]![FSalesStock]![StartYear] OR [Forms]![FSalesStock]![StartYear] IS Null))
                   And (((Format([TBMain.Time],"yyyy"))=[Forms]![FSalesStock]![StartMonthYear] OR [Forms]![FSalesStock]![StartMonthYear] IS Null))
                   And (((Format([TBMain.Time],"mm"))=[Forms]![FSalesStock]![StartMonth] OR [Forms]![FSalesStock]![StartMonth] IS Null))
                    
         
                  )
           UNION
         
              Select CountryID, StateID, KindID, Null as PAStart, Price/Area AS PAEnd
           From TbMain
           Where (
              (([TBMain.Time]=Forms!FSalesStock!ReportDateEnd) OR Forms!FSalesStock!ReportDateEnd IS Null)
                   And (((Format([TBMain.Time],"yyyy"))=[Forms]![FSalesStock]![EndYear1] OR [Forms]![FSalesStock]![EndYear1] IS Null))
                   And (((Format([TBMain.Time],"yyyy"))=[Forms]![FSalesStock]![EndMonthYear] OR [Forms]![FSalesStock]![EndMonthYear] IS Null))
                   And (((Format([TBMain.Time],"mm"))=[Forms]![FSalesStock]![EndMonth] OR [Forms]![FSalesStock]![EndMonth] IS Null))
                  
                        )
              )
GROUP BY TbMain.CountryID, TbMain.StateID, TbMain.KindID)  AS T;

I can not run the query for the null values ... i get an error " This expression is typed incorrectly or it is too complex to be evaluated"
Note when i pick a date FOR ReportDateStart and ReportDateEnd the query work fine ?
thanks Start Free Trial
[+][-]05.18.2008 at 08:29AM PDT, ID: 21593005

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.18.2008 at 09:40AM PDT, ID: 21593231

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.18.2008 at 11:35PM PDT, ID: 21595568

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 12:39AM PDT, ID: 21595755

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 02:47AM PDT, ID: 21596274

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 03:26AM PDT, ID: 21596392

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 03:30AM PDT, ID: 21596409

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 05:18AM PDT, ID: 21597058

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 08:08AM PDT, ID: 21598450

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: Microsoft, Access, 2007, Null Value, is to complex to be evaluated
Sign Up Now!
Solution Provided By: Thomasian
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.19.2008 at 11:56AM PDT, ID: 21600509

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 11:57AM PDT, ID: 21600517

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 11:59AM PDT, ID: 21600538

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 12:09PM PDT, ID: 21600613

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 04:40PM PDT, ID: 21602446

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 04:59PM PDT, ID: 21602513

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628