J
Jose Luis Balsera
I don't think you should format dates as string to pass them as parameters to the command object. Simply pass them as DateTime objects
chris said:ok..i've remove the format dates..but it's still not working..am i
putting the correct parameter especially on this statement?thanks
AND order_date BETWEEN @order_date AND @order_date <----
And now you are specifying the parameter twice said:cm.Parameters.Add("@lower_order_date", startDate)
cm.Parameters.Add("@lower_order_date", endDate)
Alex Feinman said:cm.Parameters.Add("@lower_order_date", startDate)
cm.Parameters.Add("@upper_order_date", endDate)