只能用数字修改,输入英文修改就出错
Func up()$Strn=GUICtrlRead($hek)
$cy=GUICtrlRead($textPassword)
$addfld = ObjCreate("ADODB.Connection")
$addfld.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & $datename & ";Jet Oledb:Database Password=" & $datepass)
$sQuery ="update " & $tblname & " settbMember.=" &$cy & " WHERE cardNo = '"&$Strn&"'"
MsgBox(0,"",$sQuery)
$addfld.execute($sQuery)
$addfld.close
MsgBox(4096, "提示:"," 更新成功!!!")
EndFunc 很简单,你的access数据库字段只允许输入数字.这时候就出错了. 很简单,你的access数据库字段只允许输入数字.这时候就出错了.
l4ever 发表于 2009-9-17 00:51 http://www.autoitx.com/images/common/back.gif
正解。。。。。。! access数据库字段类型是文本啊
页:
[1]