Hi all.
I got an error for my SQL syntax.
The error lies in the commented line shows below.

VB Code:
  1. <%
  2. nokpA = request.Form("kp1")&request.Form("kp2")&request.Form("kp3")
  3. set ic = server.CreateObject("adodb.recordset")
  4. ic.open "select * from staf where nokp = nokpA" ,conn 'error is here
  5.     if not ic.eof then %>
  6.     <script>
  7.     alert("Maaf, no KP telah wujud");
  8.     </script>
  9.     <%end if%>

The error tells that:
No value given for one or more required parameters.

I think there must be something wrong with the SQL syntax but I couldnt figure out whts wrong with that line.
So, I need help from you all to explain to me.
Thanks in advance.