Results 1 to 3 of 3
  1. #1
    bomich is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    10

    Counting Records in a Query

    I have two tables, RMA Numbers and Serial Numbers. Each RMA number will have multiple serial numbers assosiated. I need to find a way to count how many serial numbers are assosiated with each RMA number.



    I think the best way to do this is in a query using the dCount function some how.. but I can't figure out how to get it to count different serial numbers for the same RMA number.

    I also considered writing my own function to do it.. but it got really messy and there must be an easier way to do it..!?

    Any Ideas???

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    What are the fields in each of the tables? Is there a common field that you can join the tables on and then perform an aggregate query?

  3. #3
    bomich is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    10
    Literally the whole of yesterday spent trying one thing after another!
    I'd never heard of aggregate queries before so googled it first thing this morning..
    had a quick go
    works perfectly straight away..!
    ahh.. the joys of databasing..! :L

    Thanks Alan! (:

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

Similar Threads

  1. Counting records
    By mjsabin in forum Access
    Replies: 1
    Last Post: 03-06-2012, 11:11 AM
  2. Counting records of a parameter query
    By JonathanT in forum Reports
    Replies: 5
    Last Post: 10-31-2011, 04:33 AM
  3. Counting Only Certain Records
    By jtphenom in forum Queries
    Replies: 9
    Last Post: 03-29-2011, 01:25 AM
  4. Counting Records
    By WhiteNite1971 in forum Access
    Replies: 1
    Last Post: 01-22-2011, 06:36 AM
  5. Counting returned records in a query
    By johncob in forum Queries
    Replies: 0
    Last Post: 02-11-2009, 05:30 PM

Tags for this Thread

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