How to convert thisSQL Statement into a format the MS Access 2003 will accept

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'))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top