Results 1 to 2 of 2

Thread: Simple way to move in a recordset.

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Montana
    Posts
    6

    Post

    I have a text field that displays the first field in my recordset. I want to put in command buttons to scroll back and forth to view the various fields. Below is one of the ways that I have attempted to do this.

    Private Function btnNext_onclick() As Boolean

    rstTechnicians.MoveNext

    End Function

    My rstTechnicians recordset contains one column with several rows of data.

    All help is greatly appreciated,
    Stephen

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284

    Post

    Private Sub Command1_Click()

    rstTechnicians.MoveNext
    text1 = rstTechnicians(0)

    End Sub

    You'll probably want to check EOF in there aswell but essentially it is what you had yourself

Posting Permissions

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



Click Here to Expand Forum to Full Width