CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Record Count

  1. #1
    Guest

    Record Count

    I have a microsoft Access table that Ive created a user interface in VB for, I have a horizontal scroll bar to click through the records individually but i cant figure out how to print out a record count similar to the one in Access where it will say 1 out of 30 for example, then 2 out of 30 etc. etc., can anyone help me figure out how to translate the record count from the access table to the VB interface or how to create code in VB to calculate the current record and total records then display that information on the form.


  2. #2
    Guest

    Re: Record Count

    Try using a SQL select statement such as:

    SELECT COUNT(COLUMN_NAME)
    FROM TABLE_NAME;

    using a column that is classified as NOT NULL (that is, requires an entry for each record) to get a true count of the total records in a table.


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