I have a field called (usasdthp.effdte) that is defined as a string in the yyyymmdd format. I'm trying to generate a report that will only show the "current day" on the report. Any help/hints would be appreciated.
I would change the current date to a string and use that as your parameter. Comparison to a formula means bringing all the records to the report computer then eliminating all those that don't match today - Crystal can't send it to the server - which is very high bandwidth. Using a SQL field is a lot better, but it requires a conversion on every record in your table which can end up being fairly CPU intensive if you have a large datasource.
Lisa: Good point, especially if the (usasdthp.effdte) is an indexed column.
If it isn't, there shouldn't be much of a performance hit on a cast or convert on the string to a date, bit I'll bet your solution has at least equal performance, and probably better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.