I am having a problem with the following statement. Can you folks help out?
sqlstatement="SELECT EventDate, detail FROM calendar WHERE (((DatePart('ww',EventDate))=" & datepart("ww",Date()) & " And ChapterID=" & Session("Chapter") & ")) ORDER BY EventDate"
I am getting the following error:
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid parameter 1 specified for datepart.
Thanks.
sqlstatement="SELECT EventDate, detail FROM calendar WHERE (((DatePart('ww',EventDate))=" & datepart("ww",Date()) & " And ChapterID=" & Session("Chapter") & ")) ORDER BY EventDate"
I am getting the following error:
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid parameter 1 specified for datepart.
Thanks.