I'm using Crystal Reports XI and connecting to an Oracle MDB. The database stores dates/times as a number and I've gotten a formula to convert those numbers into dates. However, when my users want to use a date as a search parameter, it really slows the report down. I've been trying to figure out how to have the users input a date as the search parameter and then behind the scenes convert it into the appropriate number so that I can query the database using the number.
This is the formula I am using:
So 7617025620 = 7/19/2008 0707
What I want to be able to do is have my user type in 7/19/2008 and have a formula to convert it to 76170. Is this possible?
This is the formula I am using:
Code:
DateTime(Date(DateAdd("d",val(left(x,5)),date(1800,1,1)))
So 7617025620 = 7/19/2008 0707
What I want to be able to do is have my user type in 7/19/2008 and have a formula to convert it to 76170. Is this possible?