Hi,
I have a requirement, where I have to dynamically sort the report based on the user selection. I have strings and dates in the user selection and am sorting accordingly.
Have no issues with strings but as soon as I add date to it, in the If then Else condition, I am getting incorrect datatype messsage DMB0003.
Tried to use FormatDate(Date,“mm/dd/yyyy”), but dates are not sorted correctly, it is sorting alpha numerically just as it does with strings.
Eg.
1/1/2001
11/1/2002
12/1/2001
2/1/2000
I am using BO 6.1b just in case you need the version.
Any ideas, please let me know.
Thanks,
Vinay
Vinay (BOB member since 2003-07-14)