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
Center aligned backround image that extends with div
Windows Deployment Services on WIN 2003 PXE Server ISSUES?
Can't Update Outlook Appointments
ISA 2006 STANDARD MIGRATE TO ISA 2006 ENTERPRISE
WD external HD doesnt apper in my computer
What is the character code for this Character in a HTML page.
Office Communicator unable to search for contacts
This expression is typed incorrectly.
Default SMTP IIS
Objective-C bizarre non-copile