Results 1 to 2 of 2

Thread: Return row 1 of recordset

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    90

    Return row 1 of recordset

    Dear friends,

    I am familiar with returning a recordset referencing the column name or column index.

    Me.ListBox1.AddItem rst(0) - ref column index

    however, i would like to return the first row of the recordset.

    how should i reference this?

    thank you

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Return row 1 of recordset

    To return the values of columns in a specific Row you must Move to that Row.

    The Recordset object has several Move methods, the one you need to use is MoveFirst.

    rst.MoveFirst
    Me.ListBox1.AddItem rst(0) - ref column index

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