MS Access Reporting for an Interval
February 12, 2007 12:29 PM
Subscribe
Microsoft Access: How to query data with a variable that is a time value, and incremented.
I have a bunch of data (specifically call logs) that I would like to create a trunk usage report from. The data is simply dropped into Access for each outbound/inbound call (TrunkDirection = 2, or 3).
So I have this form (sorry if my SQL is horrible):
SELECT count(*) from Connect
WHERE TrunkDirection = '2' // run again with 3 here
AND PortNumber != '0' // 0 means internal call
AND ConnectTime < $time and disconnecttime> $time
GROUP BY SwitchID // Meaning 'site'
I would like $time to be 0:00:00, 1/1/07, and increment every 60 seconds to create a report that lists my 5 sites (5 switch ID's) and a count of the calls that are occuring at that minute interval.
My concern is how to implement the $time in Access. I don't know VBS, and could do this with Perl/PHP, but would rather not due that. Externally I would simply run 89280 queries against the data, and create a new 89280 table to report on.
(89280 = 60 minutes * 24 hours * 31 days * 2 call states)>
posted by SirStan to computers & internet (7 comments total)
1 user marked this as a favorite
posted by erikgrande at 2:05 PM on February 12, 2007