This query works fine when run from Excel but when you put it into Access and run it, it gives an error on the hours statment. (see below)
select distinct drive_name,count(*) as NUM_TAPE_MOUNTS from summary where activity='TAPE MOUNT' and CAST((current_timestamp-start_time)hours as decimal) <= 24 group by drive_name
Any Ideas as to what the proper syantx would be for this in Access?
select distinct drive_name,count(*) as NUM_TAPE_MOUNTS from summary where activity='TAPE MOUNT' and CAST((current_timestamp-start_time)hours as decimal) <= 24 group by drive_name
Any Ideas as to what the proper syantx would be for this in Access?