T
topdawg25
Guest
HELP!!!!!!
I'm trying to select records from a table based on appt time. (format of time is 8:01:00 AM,) What i need to extract is records as folows (8:01:00 AM, 8:31:00 AM ... 16:31:00 PM) but my SQL statement is only selecting 8:31:00 AM. below is a sample of the SQL Query, Can someone tell me what I'm doing wrong.
SELECT [Dec10/04].Time, [Dec10/04].[CUSTOMER NAME], [Dec10/04].YR, [Dec10/04].MODEL, [Dec10/04].VEHID, [Dec10/04].ESTDUR
FROM [Dec10/04]
WHERE ((([Dec10/04].Time)=TimeSerial(7,31,0) Or ([Dec10/04].Time)=TimeSerial(8,1,0) Or ([Dec10/04].Time)=TimeSerial(8,31,0) Or ([Dec10/04].Time)=TimeSerial(9,1,0) Or ([Dec10/04].Time)=TimeSerial(9,31,0)))
ORDER BY [Dec10/04].Time;
Thanks
Jamie
I'm trying to select records from a table based on appt time. (format of time is 8:01:00 AM,) What i need to extract is records as folows (8:01:00 AM, 8:31:00 AM ... 16:31:00 PM) but my SQL statement is only selecting 8:31:00 AM. below is a sample of the SQL Query, Can someone tell me what I'm doing wrong.
SELECT [Dec10/04].Time, [Dec10/04].[CUSTOMER NAME], [Dec10/04].YR, [Dec10/04].MODEL, [Dec10/04].VEHID, [Dec10/04].ESTDUR
FROM [Dec10/04]
WHERE ((([Dec10/04].Time)=TimeSerial(7,31,0) Or ([Dec10/04].Time)=TimeSerial(8,1,0) Or ([Dec10/04].Time)=TimeSerial(8,31,0) Or ([Dec10/04].Time)=TimeSerial(9,1,0) Or ([Dec10/04].Time)=TimeSerial(9,31,0)))
ORDER BY [Dec10/04].Time;
Thanks
Jamie