Results 1 to 8 of 8

Thread: ADO Recordset returning blank fields *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297

    ADO Recordset returning blank fields *RESOLVED*

    Hey everyone,

    I've got the following code:

    Code:
    Set rsMyRS = cn.execute("SELECT * FROM INDEX")
    Do until rsMyRS.EOF
        Debug.Print(rsMyRs.Fields(26).Value)
    
         rsMyRS.MoveNext
    Loop
    Where cn is a connection to an SQL Server running on my computer.

    The problem is that this prints out a blank, even though I can go look at the table in Ent. Manager and see that the field has a value in it. After I play around with the recordset object in the Debug window, sometimes I can get it to display the real value, but not always.

    Anyone know why it would return a blank? It's not even returning NULL, but just a blank string.

    Thanks!
    Last edited by BenFinkel; Apr 29th, 2004 at 10:07 AM.

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