home *** CD-ROM | disk | FTP | other *** search
-
- Public Sub MoveFirst()
-
- ' If rsMain has been assigned, move to the first
- ' record in the recordset and update the scroll
- ' bar's position.
- If Not (rsMain Is Nothing) Then
- rsMain.MoveFirst
- hsbRecScroll.Value = 1
- End If
-
- End Sub
-
-
- Public Sub MoveLast()
-
- ' If rsMain has been assigned, move to the last
- ' record in the recordset and update the scroll
- ' bar's position.
- If Not (rsMain Is Nothing) Then
- rsMain.MoveLast
- hsbRecScroll.Value = hsbRecScroll.Max
- End If
-
- End Sub
-
-
- Public Sub MoveToRecord(RecNumber As Long)
-
- ' If rsMain has been assigned, move to the given
- ' record number in the recordset, but only if it
- ' is within the valid range.
- If Not (rsMain Is Nothing) Then
- If RecNumber >= 1 And RecNumber <= rsMain.RecordCount Then
- rsMain.AbsolutePosition = RecNumber
- End If
- End If
-
- End Sub
-