D
DJM2
Basically I want to write a Between statement in MS Access Design View.
The database is number format. 'yyyymmdd hh24:mi:ss'
This works in Excel but not in Access.
FROM
ODS.TRANSACTION_FACT t3
( t3.TRANSACTION_TIME_LOCAL >= (to_date((to_char(sysdate-31,'yyyymmdd')||'
'||to_char('23:59:59')),'yyyymmdd hh24:mi:ss' ))
and t3.TRANSACTION_TIME_LOCAL <= (to_date((to_char(sysdate-1,
'yyyymmdd')||' '||to_char('23:59:59')),'yyyymmdd hh24:mi:ss'))
The database is number format. 'yyyymmdd hh24:mi:ss'
This works in Excel but not in Access.
FROM
ODS.TRANSACTION_FACT t3
( t3.TRANSACTION_TIME_LOCAL >= (to_date((to_char(sysdate-31,'yyyymmdd')||'
'||to_char('23:59:59')),'yyyymmdd hh24:mi:ss' ))
and t3.TRANSACTION_TIME_LOCAL <= (to_date((to_char(sysdate-1,
'yyyymmdd')||' '||to_char('23:59:59')),'yyyymmdd hh24:mi:ss'))