Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Jun 2002
    Location
    Ontario
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Repositioning a query (Access 2000)

    I have a form that is showing results from a query. I want to be able refresh the form and reposition myself at a specific record when the user presses a button. I know that I can use "me.CurrentRecord" to determine where in the query I am but how do I use this info after doing a requery ?

  2. #2
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Repositioning a query (Access 2000)

    Your best bet is to use the RecordsetClone method and the Bookmark property. For example, something like:
    <font face="Georgia">
    Dim rst As Recordset

    Set rst = Me.RecordsetClone
    rst.FindFirst "lngProjectID = " & Me!cboSelectProject
    If Not rst.NoMatch Then Me.Bookmark = rst.Bookmark
    </font face=georgia>
    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •