Hi Shoakat,
I could see the usage of CSTR required when the "dtRateTo" contains any of the following possible values.
If it contains Date - then the CStr function will return a string that contains a date in the short-date format.
If it contains Null - then a run-time error will occur.
If it contains Empty - then the CStr function will return an empty string ("").
That is the reason too for using a ConvNull function there.
Hope that explains.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|