| 发表于:2007-03-30 03:02:22 楼主 |
private sub command2_click() set con = new adodb.connection con.connectionstring = "provider=microsoft.jet.oledb.4.0;data source=c:\swdata.mdb;persist security info=false " con.cursorlocation = aduseclient con.open rst.open "select * from usermgmt where usermgmt!id= ' " & clng(text1.text) & " ' ", con, adopenkeyset, adlockoptimistic if rst.bof = true or rst.eof then msgbox "您输入的用户不存在! ", 48, "警告 " else: rst.delete unload me end if end sub id在access为自动编号类型 为什么与clng(text1.text)类型不符? |
|
|
|
|