hi list..
need help..
i'm using My Sql database.. one of my table fiels is a date field.. so it store the date value in this format, '2001-01-31'
Now, i must do a comparison with Date() function. This Date() function return value in this format, '31/01/01'
so ,if i do something like this
tarikh=Date()
Query = "select * from sales where deldate > '"&(tarikh)&"' AND deldate - '"&(tarikh)&"' = 1 OR deldate = '"&(tarikh)&"'"
Set RS2 = Conn.Execute(Query)
i still cannot get the data.. please guide me how to do this..
thanks a lot..
parames.s
need help..
i'm using My Sql database.. one of my table fiels is a date field.. so it store the date value in this format, '2001-01-31'
Now, i must do a comparison with Date() function. This Date() function return value in this format, '31/01/01'
so ,if i do something like this
tarikh=Date()
Query = "select * from sales where deldate > '"&(tarikh)&"' AND deldate - '"&(tarikh)&"' = 1 OR deldate = '"&(tarikh)&"'"
Set RS2 = Conn.Execute(Query)
i still cannot get the data.. please guide me how to do this..
thanks a lot..
parames.s