digimortal
Programmer
Hi All,
I have table called Eventsl with four fields;
DTime: 01.07.2005 18:36:00
Name: Name
Surname: Surname
CardNo: 1234324
and I need to get all the records between 18:00:00 and 19:00:00 between the given date parameters.
Below is my query that does not work
It gives the invalid coloumn error for DTime2???
Thnx in advance
I have table called Eventsl with four fields;
DTime: 01.07.2005 18:36:00
Name: Name
Surname: Surname
CardNo: 1234324
and I need to get all the records between 18:00:00 and 19:00:00 between the given date parameters.
Below is my query that does not work
Code:
SELECT DISTINCT CONVERT(varchar(8), DTime, 108) AS DTime2, DTime FROM EventsL
WHERE (Site = 'BAK AMBALAJ') AND (Door = 'TURNiKE GiRiS') AND (DTime > '"& Date1 &"') AND (DTime < '" & Date2 & "') AND DTime2 > '18:00:00' AND DTime2 < '19:00:00'
It gives the invalid coloumn error for DTime2???
Thnx in advance