Para poder llamar a la funcion lo estoy haciendo asi en el boton
Código asp:
Ver original<tr><td colspan="6" width="100%"> </td></tr>
<tr>
<td colspan="6" align="center">
<input type="submit" name="BBbuscar" value="Buscar" onClick="buscar()" onMouseover="showtip2(this,event,'Buscar la información Seleccionada');" onMouseout="hidetip2();" style="cursor:help">
<input type="button" name="BBlimpiar" value="Limpiar" onClick ="BBmovil.value = '0'" onMouseover="showtip2(this,event,'Limpiar datos de Búsqueda');" onMouseout="hidetip2();" style="cursor:hand">
</td>
</tr>
<tr><td colspan="6"> </td></tr>
</table>
tambien lo pruebo con type button pero no pasa nada.
Y la funcion Buscar:
Código javascript
:
Ver original<script language="javascript">
function buscar()
{
<%
movil = request.Form("BBmovil")
'if BBmovil = MOVIL then
sql2_2= "insert into tabla1 (rs2(0), rs2(1), rs2(2), rs2(3), rs2(4), rs2(5), rs2(6),
rs2(7), rs2(8), rs2(9), rs2(10), rs2(11)) values " & " ('" & NUM_CHIP & "',
'" & MOVIL & "', '" & DATO1 & "', '" & DATO2 & "', '" & SERIE_CARPETA & "',
'" & PIN & "', '" & PUK & "', '" & FECHA_ENTREGA_CHIP & "', '" & FECHA_RETIRO_CHIP & "', '" & ASIGNADO & "',
'" & NO_ASIGNADO & "', '" & NOTAS & "') WHERE MOVIL = 'movil' "
'sql2_2 ="select * from CHIP WHERE MOVIL = 'movil' "
'end if
%>
}
</SCRIPT>
Incluso probe asignandole un valor a WHERE MOVIL = '1' pero no pasa nada no se que ocurre, Que estoy haciendo mal

Si alguien sabe algo me puede ayudar. Gracias