scottyjohn
Technical User
Hi all,
I am using the query below to query a back end oracle view from an access front end.
SELECT SOFTPHONE.*
FROM SOFTPHONE
WHERE STARTD=Format(Now(),'dd/mm/yyyy')
and left(startt,2)=Format(Now(),'HH');
It works fine for current date, current hour, but I need to adapt the query to select current hour -1, but cant seem to get the syntax right. Can anyone point me in the right direction?
John
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
I am using the query below to query a back end oracle view from an access front end.
SELECT SOFTPHONE.*
FROM SOFTPHONE
WHERE STARTD=Format(Now(),'dd/mm/yyyy')
and left(startt,2)=Format(Now(),'HH');
It works fine for current date, current hour, but I need to adapt the query to select current hour -1, but cant seem to get the syntax right. Can anyone point me in the right direction?
John
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)