/ Published in: Visual Basic
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private bkmCurrentRecord as Variant Private timeWheel as Variant Private Sub Form_Current() Dim tmpBookmark as Variant If Timer - timeWheel < 1 Then 'If Wheel has been recently used If Not IsEmpty(bkmCurrentRecord) Then tmpBookmark = bkmCurrentRecord bkmCurrentRecord = Empty Me.Bookmark = tmpBookmark Else bkmCurrentRecord = Me.Bookmark End If Else bkmCurrentRecord = Me.Bookmark End If End Sub Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long) timeWheel = Timer End Sub Private Sub Form_Open(Cancel As Integer) bkmCurrentRecord = Me.Bookmark End Sub