#1
  1. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Feb 2004
    Posts
    37
    Rep Power
    11

    Counting Total Records In A DataTable


    I'm not an ASP.NET guy, so this is a total newbie question.

    I've connected to my Access file
    I've managed to get it to spit out records.

    I'm trying to find a property that tells me how many records are stored in a DataTable object.

    I've tried comparing the Rows property to null, but that doesn't work. I'm hesitant to try looping through each record and then adding them all up.

    Any suggestions?
    Brandon Tom
  2. #2
  3. Unholy Moderator
    ASP Mastermind (5000+ posts)

    Join Date
    Oct 2003
    Location
    In hell, where did you think?
    Posts
    12,026
    Rep Power
    658
    Code:
    Dim recordCount As Integer
    
    recordCount = DataTable.Rows.Count
  4. #3
  5. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Feb 2004
    Posts
    37
    Rep Power
    11
    thanks

Similar Threads

  1. Replies: 3
    Last Post: March 30th, 2004, 04:29 PM
  2. counting records with a SQLconnection
    By angela in forum .NET Development
    Replies: 3
    Last Post: August 11th, 2003, 01:47 PM
  3. counting records ????
    By tonya in forum ASP Development
    Replies: 6
    Last Post: April 10th, 2003, 01:06 PM
  4. counting records found in a search
    By Steve Schofield in forum SQL Development
    Replies: 0
    Last Post: June 28th, 2001, 07:44 PM
  5. how to find total # of records in recordset?
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: January 19th, 2001, 08:28 AM

IMN logo majestic logo threadwatch logo seochat tools logo