Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set bookmark back to beginning record 1

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have this code which works great
Code:
    Dim rs As Object
    Dim SQLString As String
    Set rs = Me.Recordset.Clone
    
    SQLString = "[Project Number] = '" & Me![cboFindProjectNumber].Column(0) & "' And [Service] = '" & Me![cboFindProjectNumber].Column(1) & "' And [Number] = '" & Me![cboFindProjectNumber].Column(2) & "'"
    rs.FindFirst SQLString
    If Not rs.EOF Then Me.Bookmark = rs.Bookmark

How can I easily show the first record on the screen
by clicking a button called Refresh.

TIA

DougP
 
Nevermind I figured it out, Sorry
Code:
    Dim rs As Object
    Dim SQLString As String
    Set rs = Me.Recordset.Clone
    rs.MoveFirst
    Me.Bookmark = rs.Bookmark

DougP
 
or simply
DoCmd.GoToRecord , , acFirst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top