johncassell
Well-known member
Hi There,
I have 2 jobs in my database with the following start dates:
17/09/2007 00:00:00
17/09/2007 23:59:59
I have a query with the following code:
Problem is if I have the following parameters:
Param1 = 17/09/2007
Param2 = 17/09/2007
It only returns the second job (With time of 23:59:59)
How can I get it to recognise that 17/09/2007 00:00:00 is in the range?
Even if I have the following parameters, it still doesn't show that job;
Param1 = 16/09/2007 23:59:59
Param2 = 17/09/2007 23:59:59
Anyone have any ideas?
Thanks
John
I have 2 jobs in my database with the following start dates:
17/09/2007 00:00:00
17/09/2007 23:59:59
I have a query with the following code:
VB.NET:
SELECT Job_Number, Start_Date
FROM WS_Jobs
WHERE (Start_Date BETWEEN @Param1 AND @Param2)
Problem is if I have the following parameters:
Param1 = 17/09/2007
Param2 = 17/09/2007
It only returns the second job (With time of 23:59:59)
How can I get it to recognise that 17/09/2007 00:00:00 is in the range?
Even if I have the following parameters, it still doesn't show that job;
Param1 = 16/09/2007 23:59:59
Param2 = 17/09/2007 23:59:59
Anyone have any ideas?
Thanks
John