Microsoft
Software
Hardware
Network
Question : How to request previous month's records in my sql's where clause?
I'd like to display on my page the previous month's records. This is the WHERE clause of my sql:
WHERE MonthOfReport like 'June'
On my page I display last month's name like this:
<%response.Write(MonthName
(month(dat
e)-1))%>
How could I call last month's records in my SQL automatically?
I tried this but it didn't work:
WHERE MonthOfReport like '%response.Write(MonthName
(month(dat
e)-1))%'
Could anyone please help? Thank you
Related Solutions:
How can I display previous month's records in January?
Answer : How to request previous month's records in my sql's where clause?
SQL = "SELECT * FROM tblName WHERE MonthOfReport LIKE '%" & MonthName(month(now)-1) & "%' "
/ Tobzzz
Random Solutions
Visiting the Fort Worth / Dallas area in August, any suggestions on what to do and see?
FBML
Server running out of space.
Does any one know how can I make partition from HP7700 Small form factor?I tried do the way from disk management but mostof the option greyed ,only properties is active .
Individual User Bandwidth Usage Monitor from Server
Stop: c0000218 {Registry File Failure} \systemroot\system32\confi
g\SECURITY
Unable to relay CRM email
Smtp Email Failure
insert each word of a line of text into an element of an array
using one procedure with for parameteres to open forms