CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    Vadodara, Gujarat, India
    Posts
    52

    Question How to count rows of Access data table?

    I have one Access data base connected with my ASP.net site. When I want to fetch data it works fine.

    I want to display total number of records of Access data table on my ASP.net page

    That mean I have one label name lblTotalCount I want to set it’s Text property with total number of record count in Access Table so how can I do that?

    Friends kindly help me.

    Ajay

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: How to count rows of Access data table?

    this simple query will return the total number of rows in a table

    Code:
    SELECT COUNT(*) FROM Table1
    I haven't used Access in years and I can't remember if is supports the "*" operator.

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

Featured