Dim tmpRs As New ADODB.Recordset Dim tmprd As New ADODB.Recordset Private Sub Form_Load()
Dim sh As String Set tmprd = ExecuteSQL("select * from song") '从SQL更新点唱率 If tmprd.BOF = False And tmprd.EOF = False Then tmprd.MoveLast tmprd.MoveFirst End If
Set tmpRs = ExecuteAccess("select * from song ") Do While tmptd.EOF = False If tmprd.Fields("songname") = tmprs.Fields("歌曲名") Then If tmprs.Fields("点唱次数") <> tmprd.Fields("songcount") Then tmprs.Fields("点唱次数") = tmprd.Fields("songcount")(這一句總不執行,很鬱悶) tmprs.Update tmprd.MoveNext tmprs.MoveNext End If End If Loop MsgBox "" End Sub
大家幫我看看是什麽原因~~~~很急~~~~唉~~~沒有辦法,找你們.
[此贴子已经被作者于2004-06-02 11:21:54编辑过]