Results 1 to 3 of 3
  1. #1
    gmaster is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2014
    Posts
    32

    Total record sum


    Hi, i've got a DB with a dozen tables and i was trying to find a way to put number of records contained in the DB, into the intro form. I mean, i wanted it to show the sum of the number of records in each table....i was trying with some query, but maybe is more functional VBA?

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    make a table to record the totals, say tDBTotals

    now make a query to append the totals
    insert into tDbTotals ([Table], [Count]) values ("empoyees", Dcount("*","tEmps")
    insert into tDbTotals ([Table], [Count]) values ("Accts", Dcount("*","tAccts")
    etc..


    build a macro that has these append queries..
    the macro empties tDbTotals
    then all the append queries.
    done.

  3. #3
    gmaster is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2014
    Posts
    32
    Thanks! I adjusted a little and works just fine

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 02-12-2014, 04:32 PM
  2. Count - Sum Total a record is modified
    By mike760534211 in forum Access
    Replies: 6
    Last Post: 01-08-2014, 03:30 PM
  3. Getting a total of all 24 values in one record
    By TheMegaSage in forum Queries
    Replies: 3
    Last Post: 07-25-2013, 12:44 PM
  4. Replies: 2
    Last Post: 12-05-2012, 02:41 PM
  5. Replies: 3
    Last Post: 10-23-2009, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums