Hey guys,
Ok, I'm stumped on this. I'm passing a sql string as my command, and in it it has a where clause to compare a date field to a date being passed in (I only want records that occur after the passed in date, so
WHERE TimeIn >= 'datetime'
Here's my problem: If I hard code a date, it works. But if I pass in a variable it doesn't take! Am I missing something here?! I've tried passing in a date var, a string (which I"m using now), but it just doesn't want to work!
Any thoughts?
Jack
Ok, I'm stumped on this. I'm passing a sql string as my command, and in it it has a where clause to compare a date field to a date being passed in (I only want records that occur after the passed in date, so
WHERE TimeIn >= 'datetime'
Here's my problem: If I hard code a date, it works. But if I pass in a variable it doesn't take! Am I missing something here?! I've tried passing in a date var, a string (which I"m using now), but it just doesn't want to work!
Any thoughts?
Jack