www.webdeveloper.com
Results 1 to 2 of 2

Thread: accessing the field header

  1. #1
    Join Date
    Oct 2003
    Posts
    32

    accessing the field header

    I have this to access the fields inside my database.

    If Not objCleanUpRS.EOF Then
    objCleanUpRS.MoveFirst
    'Show data
    Do While Not objCleanUpRS.EOF
    Response.Write "<tr>" & vbCrLf
    For I = 0 To objCleanUpRS.Fields.Count - 1
    Response.Write vbTab & vbTab & "<td>" & objCleanUpRS.Fields(I) & "</td>" & vbCrLf
    Next
    Response.Write vbTab & "</tr>" & vbCrLf
    objCleanUpRS.MoveNext
    Loop
    End If
    Response.Write "</table>" & vbCrLf

    this will print out the two records in my database
    02/02/2003 James
    02/03/2003 Mike

    I want to access the header name.
    I need to know the keywords to access
    Date Name

    this access the field
    objCleanUpRS.Fields(I)
    what word access the header (I'm not sure that header is the right word to for it but basically it is the name of what is in the field)

  2. #2
    Join Date
    Oct 2003
    Posts
    32

    objCleanUpRS.Fields(I).Name

    Yeah I figured it out!!!!!!!!!!!!!!!!!
    objCleanUpRS.Fields(I).Name
    will access the name of the field.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles