回 帖 发 新 帖 刷新版面

主题:IDispatch error #3092???????

strSQL.Format("INSERT INTO SYS_USER_Info(UserID,UserName,Password,Property,CanHidden,Phone,OfficePhone,Fax,Email,OicqNumber,Msn,PostCode,UserAddress,City,UserJob,JobTitle,UserBirthday,Sex,IDCard,Remark,SerialNumber,ReceiveLimit,CreateTime,RightLevel)\
            values('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%d','%d','%s','%d')",userID,name,password,property,hidden,famPhone,offPhone,fax,email,OICQ,MSN,postCode,address,city,job,jtitle,birthday,sex,IDCard,remark,serialNum,recLimit,creTime,rightLevel);
            AfxMessageBox(strSQL);
            if(user.dbConnection->Execute((LPCTSTR)strSQL,NULL,adCmdText))
            {
                AfxMessageBox(_T("添加用户成功!"),MB_ICONINFORMATION);
                userID=name=password=password=property=hidden=hidden=famPhone=offPhone=offPhone=fax=email=OICQ=MSN=postCode=address=city=job=jtitle=birthday=sex=IDCard=remark=creTime="";//清除所有输入
                serialNum=recLimit=rightLevel=0;
                UpdateData(false);//变量在控件中显示
            }

回复列表 (共1个回复)

沙发

这个是因为 你在两处放置了密码,却是不一致的!!

我来回复

您尚未登录,请登录后再回复。点此登录或注册