Hey gang,
I want to return only records that have been entered after the datetime that I'm passing from my asp.net application.
My SQL string I'm passing is this:
"Select Top 15 ChatID, Username, TimeIn, Message From chattable Where ChatID = " & intRoomNum & " And TimeIn >= #" & datTimeIn & "# Order By TimeIn DESC"
The datTimeIn = January 15, 2001 3:44:23 PM
The error I keep getting is that it doesn't like the '3', so the date is fine but not the time. Above I tried using #'s, but i've also tried without them and gotten the same result. Any thoughts?
Thanks,
Jack
I want to return only records that have been entered after the datetime that I'm passing from my asp.net application.
My SQL string I'm passing is this:
"Select Top 15 ChatID, Username, TimeIn, Message From chattable Where ChatID = " & intRoomNum & " And TimeIn >= #" & datTimeIn & "# Order By TimeIn DESC"
The datTimeIn = January 15, 2001 3:44:23 PM
The error I keep getting is that it doesn't like the '3', so the date is fine but not the time. Above I tried using #'s, but i've also tried without them and gotten the same result. Any thoughts?
Thanks,
Jack