cs_TheHunter
Messages postés2Date d'inscriptionvendredi 22 mars 2002StatutMembreDernière intervention25 mars 2002
-
22 mars 2002 à 11:42
cs_TheHunter
Messages postés2Date d'inscriptionvendredi 22 mars 2002StatutMembreDernière intervention25 mars 2002
-
25 mars 2002 à 09:09
Salut a tous,
J' ai un pb avec 2 forms sur la meme page.
voici le message d'erreur que j'obtien :
"Microsoft OLE DB Provider for ODBC Drivers error '80040e0c'
Command text was not set for the command object.
/asp/rec_liv_2.asp, line 146 "
et voici mon code :
"<form1>...</form>
<form2>...</form>
<%
dim search_num
dim search_vers
if request.querystring ("field_du form1") <> "" then
search_num = 1
else
search_num = 0
end if
if request.querystring ("field_du form2") <> "" then
search_vers = 1
else
search_vers = 0
end if
if search_num = 1 then
sql="select * from table A"
end if
if search_vers = 1 then
sql = "SELECT * FROM table B"
end if
set sqlresultat = conex.execute (sql)
if sqlresultat.recordcount = -1 then
response.write("
Désolé il n'y a aucune reponse
")
else
while not sqlresultat.eof
%>
...code html classique...
<%
sqlresultat.movenext
wend
end if
%>
Je ne comprend pas ce qui se passe : est-ce une erreur de conception ?