[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 '* ............
[Microsoft][ODBCMicrosoftAccessDriver]语法错误(操作符丢失)在查询表达式'*formgangweiwhereid='中。\confi...
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 '* form gangwei where id=' 中。\confirm.asp, line 22
我的代码是:
<%@language=vbscript%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>确认信息</title>
</head>
<body>
<script language="vbscript">
sub onclick_previous()
history.back
end sub
</script>
<%name=request.form("name")
sex=cbool(request.form("sex"))
grade=request.form("grade")
num=request.form("num")
major=request.form("major")
zzmm=request.form("zzmm")
id=request.form("id")
sql="select * form gangwei where id="&id
set rs=server.createobject("ADODB.RecordSet")
rs.open sql,conn,3,3
if not rs.eof then
wish=rs("gangwei") & "_" & rs("department") & "_" & rs("kecheng")
end if
set rs=nothing
set conn=nothing
back=request.form("back")
condition=request.form("condition")%>
<form method="post" action="add.asp" id=form1 name=form1>
<table border="1" cellspacing="1" width="100%"> 展开
我的代码是:
<%@language=vbscript%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>确认信息</title>
</head>
<body>
<script language="vbscript">
sub onclick_previous()
history.back
end sub
</script>
<%name=request.form("name")
sex=cbool(request.form("sex"))
grade=request.form("grade")
num=request.form("num")
major=request.form("major")
zzmm=request.form("zzmm")
id=request.form("id")
sql="select * form gangwei where id="&id
set rs=server.createobject("ADODB.RecordSet")
rs.open sql,conn,3,3
if not rs.eof then
wish=rs("gangwei") & "_" & rs("department") & "_" & rs("kecheng")
end if
set rs=nothing
set conn=nothing
back=request.form("back")
condition=request.form("condition")%>
<form method="post" action="add.asp" id=form1 name=form1>
<table border="1" cellspacing="1" width="100%"> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询