IraFashua
04-06-2009, 11:25 AM
this is my error that i get..
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/e-training/DailyRpt.asp, line 175, column 47
else if (month(rs7("CourseDateStart"))>= 4 AND <=6) then
and this is my coding..
<%
sql = "SELECT * from Training WHERE StaffName='" & rs2("StaffName") & "' AND Company='TSB'"
SET RS7 = Conn.Execute(sql)
Do While not RS7.EOF
%>
<% if ((month(rs7("CourseDateStart"))) => 1 and (month(rs("CourseDateStart"))) <=3) then response.Write("Q1")%><br>
<%else if (month(rs7("CourseDateStart"))>= 4 AND <=6) then
response.Write("Q2")%><br>
<%else if (month(rs7("CourseDateStart"))>= 7 AND <=9) then
response.Write("Q3")%><br>
<%else if (month(rs7("CourseDateStart")) >=10 AND <=12) then
response.Write("Q4")%><br>
<%end if%><%end if%><%end if%>
<%rs7.MoveNext
loop
rs7.Close
set rs7 = Nothing
%>
can onyone help me..
please!!!!:)
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/e-training/DailyRpt.asp, line 175, column 47
else if (month(rs7("CourseDateStart"))>= 4 AND <=6) then
and this is my coding..
<%
sql = "SELECT * from Training WHERE StaffName='" & rs2("StaffName") & "' AND Company='TSB'"
SET RS7 = Conn.Execute(sql)
Do While not RS7.EOF
%>
<% if ((month(rs7("CourseDateStart"))) => 1 and (month(rs("CourseDateStart"))) <=3) then response.Write("Q1")%><br>
<%else if (month(rs7("CourseDateStart"))>= 4 AND <=6) then
response.Write("Q2")%><br>
<%else if (month(rs7("CourseDateStart"))>= 7 AND <=9) then
response.Write("Q3")%><br>
<%else if (month(rs7("CourseDateStart")) >=10 AND <=12) then
response.Write("Q4")%><br>
<%end if%><%end if%><%end if%>
<%rs7.MoveNext
loop
rs7.Close
set rs7 = Nothing
%>
can onyone help me..
please!!!!:)