Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/08/2002, 16:18
chechu
 
Fecha de Ingreso: enero-2002
Mensajes: 91
Antigüedad: 23 años, 4 meses
Puntos: 1
Por favooor... ayudenme

Tengo una pagina "combo2.asp":
<!--#INCLUDE file="conexion_productos.asp"-->
<%
SQL="SELECT * FROM MARCAS"
SET RS=oConnProductos.Execute(SQL)
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
<!--
function Atras() {

history.back()
}
// -->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<form name="form1">
<select name="menu1" style="color: #C0C0C0; font-family: Verdana; font-size: 10px; border: 1px solid #FFFFFF; background-color: #000000" onChange="MM_jumpMenu('parent',this,0)"& gt;
<option>Seleccionar</option>
<%
while (NOT Rs.EOF)
%>
<option value="combo3.asp?Familia=<%=Rs.fields.ite m("IdFamilia").value%>"><% =Rs.fields.item("Nombre").value%></option>
<%
Rs.movenext()
wend
%>
</select>
</form>
</body>
</html>

que va a esta otra "combo3.asp":

<!--#INCLUDE FILE="conexion_productos.asp"-->
<%
SQL="SELECT * FROM MODELOS WHERE FAMILIA="&Request.QueryString("IdFam ilia")
SET RS=oConnProductos.Execute(SQL)
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript1.2">
<!--

<!--
function Atras() {

history.back()
}
// -->
//-->
</script>
</head>
<body>
<b><font color="#000066"><font size="1"><font size="1"><font face="Arial, Helvetica, sans-serif"><%=RS("Categoria")%&gt ;</font></font></font></font></b>
</body>
</html>

y me da este error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][Controlador ODBC Microsoft Access] Error de sintaxis (falta operador) en la expresión de consulta 'FAMILIA='.

/printyourideas/combo3.asp, line 4

Son 2 tablas de una misma DB

grax