Consulting

Results 1 to 3 of 3

Thread: Accessing records in Recorset

  1. #1

    Exclamation Accessing records in Recorset

    I have a recordset which has 4 records. how can I access the records.

    Say, I want to display the content of the second record in cell B3.

    Thanks for your help.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]
    ary = RS.GetRows
    Range("B3").Value = ary(2,1)
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3

    Thanks

    Thanks a lot for your help

Posting Permissions

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