📄 14371.html
字号:
<html>
<head>
<title>Re: 再请教,请问是否能用vb6 code 自动将要删除的资料删除</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 再请教,请问是否能用vb6 code 自动将要删除的资料删除</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by 小v on June 17, 1999 at 16:20:37:<p>
In Reply to: <a href="14362.html">再请教,请问是否能用vb6 code 自动将要删除的资料删除</a> posted by Lucky on June 17, 1999 at 14:12:28:<p>
<br>: 请问是否能用vb6 code 自动将要删除的资料删除,<br>: 用什么方法可以做到?<p>VB6我不熟!<p>以下为使用vb6 DAO将重覆的学号只保留第一笔,其余删除的程式码:(注: 程式未经实际测试)<p>set rs=db.OpenRecordset("select * from [LIST] order by [学号]",dbOpenDnaset)<br>if rs.recordcount>0 then<br>with rs<br> .movefirst<br> tmpS = .fields("学号")<br> .movenext <br> do while not .eof<br> if tmpS=.fields("学号") then<br> .delete<br> else<br> tmpS=.fields("学号")<br> endif<br> .movenext<br> loop<br>end with<br>endif<p><br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 14371-->
</ul><!--end: 14371-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -