Hi
I'm running the following SQL Query in VB6...
SELECT
TimeValue([Time label]) AS [Time slot],
COUNT(TimeValue([Time label])) AS [Number of]
FROM Slot
WHERE
TimeValue([Time label]) BETWEEN #08:00:00# AND # 20:00:00#
AND [Time label] BETWEEN #03/01/2007 00:00:00# AND #03/07/2007 23:59:59#
GROUP BY TimeValue([Time label])
ORDER BY TimeValue([Time label])
The idea being that I get a count of the number of matching time slots on the table.
It works fine in Access but when running within VB6 the first field comes out as "30 Dec 1899"
Any idea why?
I'm running the following SQL Query in VB6...
SELECT
TimeValue([Time label]) AS [Time slot],
COUNT(TimeValue([Time label])) AS [Number of]
FROM Slot
WHERE
TimeValue([Time label]) BETWEEN #08:00:00# AND # 20:00:00#
AND [Time label] BETWEEN #03/01/2007 00:00:00# AND #03/07/2007 23:59:59#
GROUP BY TimeValue([Time label])
ORDER BY TimeValue([Time label])
The idea being that I get a count of the number of matching time slots on the table.
It works fine in Access but when running within VB6 the first field comes out as "30 Dec 1899"
Any idea why?