acces插入或者各更新的时候,传入画面上的没有输入的文本框内容错误(万分火急,在线恭候)。
yshqh 2004-08-08 08:32:27 editsubs=request("editsubs")
subs=request("subs")
area=request("area")
bigarea=request("bigarea")
subsname=request("subsname")
price=request("price")
cusprice=request("cusprice")
mainflower=request("mainflower")
otherflower=request("otherflower")
flowertype=request("flowertype")
userfor=request("userfor")
photo=request("photo")
limitday=request("limitday")
firstday=request("firstday")
adddate=Now()
memo=request("memo")
conn.execute "update subs set subs='"&subs&"',area='"&area&"',bigarea='"&bigarea&"',subsname='"&subsname&"',price='"&price&"',cusprice='"&cusprice&"',mainflower='"&mainflower&"',otherflower='"&otherflower&"',flowertype='"&flowertype&"',userfor='"&userfor&"',photo='"&photo&"',limitday='"&limitday&"',firstday='"&firstday&"',adddate='"&Now()&"',memo='"&memo&"' where subs='"&editsubs&"'"
以上这段代码,传入的参数都是从画面的form里面取得的,如果form里面的文本框都有输入的话,就没有问题可以正常插入。
但是一旦有几个文本框没有插入数据,就报错了,不知道asp和access里面怎么解决这个问题啊?
就是我文本框里面没有输入,也可以插入到数据一个空值,谢谢各位大人了。