+ Reply to Thread
Results 1 to 2 of 2

ADO Recordset Only Returning 1 Value

  1. #1
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    ADO Recordset Only Returning 1 Value

    Hi,

    I have a pretty long procedure, and part of which is mentioned below (Most Probably the part causing issue)

    Please Login or Register  to view this content.
    RetriveValue is basically a SQL Query -

    For example select PremiumPct from DBCommon..RespDetails where ID = 775719

    This query generates a value based on a unique Id (775719) this ID will change every time the Procedure runs.

    I only get the RS to retun value for the 1st loop, and then everytime it retuns Null.. However when I check the DB, values are being generated for all IDs.

    Can anyone suggest what might be wrong?
    Cheers!
    Deep Dave

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: ADO Recordset Only Returning 1 Value

    Would need to see you query statement
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open another recordset within current recordset vba
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2015, 04:32 AM
  2. Update recordset using vba
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2015, 10:27 AM
  3. Recordset keeps returning EOF and shouldn't be.
    By BerkshireGuy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2006, 10:33 AM
  4. [SOLVED] Need ADO Recordset Help
    By Mr B in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-21-2006, 11:55 AM
  5. Recordset's RowID as part of Recordset
    By Trip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2005, 06:55 PM
  6. Returning a recordset object from a function
    By Alratan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2005, 04:09 AM
  7. problem returning a recordset from a function
    By Laurent M in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2005, 06:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1