别人建的表,我向该表内插入数据记录无反应,请给出插入代码:
表名: details 表列名如下
-----------------------------------
字段 数据类型 是否为空 默认值
detailsid int identity Not Null
title nvarchar(300) Null
userid int Null (0)
dtappenddate datetime Null Current_Timestamp
num int Null
adminid int Null
chrmark ntext Null
id int Null (0)
------解决方案--------------------
给你思路
先插入一行空行 li_new = dw_1.InsertRow(0)
然后把你要插入的东西写到空行里面去
最调用update语句
IF dw_1.UPDATE() = 1
COMMIT USING sqlca;
MessageBox('信息','保存成功!')
------解决方案--------------------
试下不要这些,直接在代码里写insert语句,看能不能插入,一步步确认