J jagu143 New Member Apr 13, 2015 #1 hi, need help to selcet this week data from access table bleow is the code i created which is not working. please hlep. strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s >= BETWEEN DATE_SUB( CURDATE( ) ,INTERVAL 7 DAY ) AND CURDATE( )" regards, jayesh
hi, need help to selcet this week data from access table bleow is the code i created which is not working. please hlep. strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s >= BETWEEN DATE_SUB( CURDATE( ) ,INTERVAL 7 DAY ) AND CURDATE( )" regards, jayesh
N NARAYANK991 Excel Ninja Apr 13, 2015 #2 Hi Jayesh , Try this : strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s BETWEEN DATE_SUB(CURDATE(),INTERVAL 7 DAY) AND CURDATE()" Narayan
Hi Jayesh , Try this : strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s BETWEEN DATE_SUB(CURDATE(),INTERVAL 7 DAY) AND CURDATE()" Narayan
J jagu143 New Member Apr 18, 2015 #3 NARAYANK991 said: Hi Jayesh , Try this : strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s BETWEEN DATE_SUB(CURDATE(),INTERVAL 7 DAY) AND CURDATE()" Narayan Click to expand... thank you! regards, jagu
NARAYANK991 said: Hi Jayesh , Try this : strSQL = "SELECT distinct(loan_Number) FROM audit where Date_s BETWEEN DATE_SUB(CURDATE(),INTERVAL 7 DAY) AND CURDATE()" Narayan Click to expand... thank you! regards, jagu