关于记录修改问题!肯请大家帮忙!
现在有一段代码不知道哪里错了,功能就是把数据重新写回数据库,请大家看看!Sql = "Select * From news where fnewsid="& Cstr(ID)
Set Rs = Db.CreateRs()
Rs.Open "news",Db.Conn,1,3
if Title<>"" then Rs("ftopic")=Title '标题
if fContent<>"" then Rs("fContent")=fContent '内容
if fDate<>"" then Rs("fDate")=fDate '更新日期
if fauthor<>"" then rs("fauthor") = fauthor
if fkeywords<>"" then rs("fkeywords") = fkeywords
Rs.Update
'ID = Rs("ID")
Rs.Close
Set Rs = Nothing
这里的id值是从别的页面传过来的,这个值肯定是正确的,但在往数据库里写的时候,这个值确成了数据库中第一条记录的id,不知道为什么