Passing Date peramiters from VB to crystal9 into a record formula

I am passing in my VB application the report selection date into the following fields

CRXReport.FormulaFields(3).Text = (Day(txtmaxvaldt))
CRXReport.FormulaFields(4).Text = (Month(txtmaxvaldt))
CRXReport.FormulaFields(5).Text = (Year(txtmaxvaldt))

I have watched these field loads through the DEBUGER and the fields look to be loaded correctly, but when the report is executed it returns nothing but the report form.

The crystal9 record selection formula in question is
{CMINV_INV_EXTRACT.CASE_NO} like "DU*" and
{CMINV_INV_EXTRACT.SYSTEM_ORIG_CD} in ["1", "2", "3"] and
{CMINV_INV_EXTRACT.VALUATION_DT} = Date ( {@tstyyyy},{@tstmm},{@tstdd})

I load this Date info through the crystal 9 formula expert and the report loads.  I need to know what I am missing in this load process

Thanks for your help
ElmDutchAsked:
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:
Is your date field actually a date time field?  If so it will never equal the date.

mlmcc
0
ElmDutchAuthor Commented:
this is true -- oracle date filed is 10/29/2004 00:00:00
0
mlmccCommented:
Try
{CMINV_INV_EXTRACT.VALUATION_DT} = DateTime ( {@tstyyyy},{@tstmm},{@tstdd},0,0,0)

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
mlmccCommented:
Another way


{CMINV_INV_EXTRACT.VALUATION_DT} >= Date ( {@tstyyyy},{@tstmm},{@tstdd}) AND
{CMINV_INV_EXTRACT.VALUATION_DT} < Date ( {@tstyyyy},{@tstmm},{@tstdd}+1)

mlmcc



0
mlmccCommented:
Should have solved 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
Visual Basic Classic

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.