Winan,
Have you tried running this code? If so, what is or is not happening? What did you expect to happen? I think it helps to post what you're actually seeing happening when you run code, instead of just to post it and ask if it's correct.
At a quick glance, all I see that may cause problems is:
Dim mFromDate As Date = C1DateEdit2.Text
Dim mToDate As Date = C1DateEdit2.Text
I think you'd need to convert or cast the .Text string to a DateTime data type.
~~Bonnie