Crystal report ----Record Selection Formula (DATE)----HELP ---URGENT

The Formula what i had written is

(({tempMonthlyProduction.PROD_DATE} = DateTime (2003, 02, 27, 00, 00, 00))) OR (({tempMonthlyProduction.EventDate} = DateTime (2003, 02, 27, 00, 00, 00)))

With this it only shows the result with PROD_DATE = 2003/02/27 and does not show the results where EventDate = 2003/02/27 ....IS THERE ANY THING WRONG !!!

Result i get ---

15469         2002-12-25 00:00:00.000     NULL
15469         2002-12-25 00:00:00.000     NULL
15469         2002-12-25 00:00:00.000     NULL


WHAT I WANT : I WOULD LIKE TO GET ALL THE RECORDS WHERE
PROD_DATE =  2003/02/27 or EventDate = 2003/02/27 .

If i use sql like
Select SHOP_ORDER_NR ,PROD_DATE , EventDate from tempMonthlyProduction_WIP where EventDate = '2002-12-25 00:00:00.000' or PROD_DATE = '2002-12-25 0:00:00.000'
I get following results


15469         NULL                        2002-12-25 00:00:00.000
15469         NULL                        2002-12-25 00:00:00.000
15469         NULL                        2002-12-25 00:00:00.000
15469         2002-12-25 00:00:00.000     NULL
15469         2002-12-25 00:00:00.000     NULL
15469         2002-12-25 00:00:00.000     NULL


IS the problem due to null


IS THERE ANY OTHER WAY OF WRITING THE FORMULA ....

PLEASE HELP  

ssanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Yes the problem is due to the NULL.  NULL values cause numerous headaches for CR.  They tend to match everything.

Can you build the filter in the database with a stored procedure?


Does data exist for EventDate = 2003/02/27 ?  So far you have only shown that data exists for 2002-12-25

What do you get for
(({tempMonthlyProduction.PROD_DATE} = DateTime (2003, 02, 27, 00, 00, 00))) OR (({tempMonthlyProduction.EventDate} = DateTime (2003, 02, 27, 00, 00, 00)))


Where are you using the formula?

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sscrystalCommented:
I am using the formula in Record Selection Formula Editor
0
sscrystalCommented:
THANKS I SOLVED THE PROBLEM >>>> I FILTERED THE NULL VALUES
0
mlmccCommented:
If you feel my suggestion to build a filter through a database stored procedure was any help in providing an answer, lease accept it.

mlmcc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.