Hello All,
I'm trying to convert the SQL statement below that I used with MS Access to SQL Server (COMPACT EDITION) 4.0 statement and I can't figure the darn thing out. I'm simply trying to get all records of the previous month. Please keep in mind that I'm using SQL Compact Edition 4.
Dim m_sSQL_Global_LastMonth As String = m_sSQL_Base_DR _
& " Where Month(DDate)=" & Month(Today) - 1 & " And " & "Year(DDate)= " & Year(Today) & "" _
& " ORDER BY DDate DESC, DTime_Start ASC;"
Thanks to all,
ADawn
gary