Guest wenzi Posted March 14, 2006 Share Posted March 14, 2006 if I want to select 7 days result only,can I do that??strMySQL = "select * from tb_PC Where (DateDiff(d, dtMakePayment, '" & date() & "') >= 0) ORDER BY dtMakePayment Link to comment Share on other sites More sharing options...
pulpfiction Posted March 14, 2006 Share Posted March 14, 2006 I guess you want to select 7 days result from the today's date. try thisstrMySQL = "select * from tb_PC Where ((DATEDIFF(d, dtMakePayment, GETDATE()) <= 7) ORDER BY dtMakePayment Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now