Can some tell from the following chunk of code why I might be getting this error:
If Request.Querystring("CustomerNumber"
= "" then
strsql = "select * from [Attendee]"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
else
myVar2=Request.Querystring("CustomerNumber"
strsql = "select * from [Attendee] where Attendee.CustomerNumber =" & "'" & myVar2 & "'" & ";"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
End If
If Request.Querystring("CustomerNumber"
strsql = "select * from [Attendee]"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
else
myVar2=Request.Querystring("CustomerNumber"
strsql = "select * from [Attendee] where Attendee.CustomerNumber =" & "'" & myVar2 & "'" & ";"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
End If