access数据库的asp问题-参数不足,期待是1

functionguestAccussfulifGoods=1thenresponse.write"<strong><fontsize=4>Hello!Youarewel... function guestAccussful
if Goods=1 then
response.write "<strong><font size=4>Hello! You are welcome!!</font></strong><br>"
response.write "<br>I'll answer in no time,Please enjoy the staying.<br>"
else
response.write "<br>Thank you for your "&chooseGoods(Goods-1)
response.write "<br>I'll answer in no time,Please enjoy the staying.<br>"
end if
response.write "<br>Time:"&ndatetime
end function

rem -----------------------
rem ---显示成功函数结束----
rem -----------------------

First_Name=request("First_Name")

Last_Name=request("Last_Name")

Address=request("Address")

City=request("City")

State=request("State")

Zip=request("Zip")

Phone=request("Phone")

Email=request("Email")

Email_Confirm=request("Email_Confirm")

Product_Name=request("Product_Name")

Date_Purchased=request("Date_Purchased")

Where_Purchased=request("Where_Purchased")

Purchase_Price=request("Purchase_Price")

Problem_Question=request("Problem_Question")
%>
<!-- #include file=database.asp -->
<%
if First_Name<>"" then First_Name=replace(First_Name,"'","''")
if Last_Name<>"" then Last_Name=replace(Last_Name,"'","''")
if Address<>"" then Address=replace(Address,"'","''")
if City<>"" then City=replace(City,"'","''")
if State<>"" then State=replace(State,"'","''")
if Zip<>"" then Zip=replace(Zip,"'","''")
if Phone<>"" then Phone=replace(Phone,"'","''")
if Email<>"" then Email=replace(Email,"'","''")
if Email_Confirm<>"" then Email_Confirm=replace(email_Confirm,"'","''")
if Product_Name<>"" then Product_Name=replace(Product_Name,"'","''")
if Date_Purchased<>"" then Date_Purchased=replace(Date_Purchased,"'","''")
if Where_Purchased<>"" then Where_Purchased=replace(Where_Purchased,"'","''")
if Purchase_Price<>"" then Purchase_Price=replace(Purchase_Price,"'","''")
if Problem_Question<>"" then Problem_Question=replace(Problem_Question,"'","''")
con.Execute " INSERT INTO guest " _
& "(First_Name,Last_Name,Address,City,State,Zip,Phone,Email,Email_Confirm,Product_Name,Date_Purchased,Where_Purchased,Purchase_Price,Problem_Question) VALUES " _
& "('" & First_Name &"','" & Last_Name & "','"& Address &"'," & City &",'" & State &"','" & Zip &"','" & Phone &"','" & Email &"','" & Email_Confirm &"','" & Product_Name &"','" & Date_Purchased &"','" & Where_Purchased &"','" & Purchase_Price & "','"& Problem_Question &"');"
con.close
set con=nothing
guestAccussful
%>

说是第 94 行: con.Execute " INSERT INTO guest " _
参数不足,期待是1

请问怎么解决啊?
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。

http://support.microsoft.com/default.aspx?scid=kb;en-us;216425
http://support.microsoft.com/kb/243834/EN-US/
上面这两个地址有相关的资料, 但我看不懂啊
展开
 我来答
mineboy
2006-10-11 · 超过104用户采纳过TA的回答
知道答主
回答量:310
采纳率:0%
帮助的人:0
展开全部
几本上是你的数据库里没有对应的字段会出这种错误。你要确认你的数据库里表名为guest的表有以下字段
First_Name,Last_Name,Address,City,State,Zip,Phone,Email,Email_Confirm,Product_Name,Date_Purchased,Where_Purchased,Purchase_Price,Problem_Question
摄级说噜改5832
2006-10-11 · TA获得超过345个赞
知道答主
回答量:268
采纳率:0%
帮助的人:0
展开全部
有字段为空或少字段
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
z8774316
2006-10-14 · TA获得超过208个赞
知道答主
回答量:106
采纳率:0%
帮助的人:52.5万
展开全部
a
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式