Results 1 to 2 of 2
  1. #1
    mikichi is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    45

    count record in query

    hi everybody,
    i try to count records in a query but without lose the details(the data fields).
    i success to do it with 2 different queries(1 to details and 1 to count records in details query)
    how i uniting them to one query?


    thanks a lot,
    miki

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Well, you could try joining the two queries in a Union Query, but that typically only works if the two queries are of the same structure (same number of fields and data types for each field). You may be able to "pad" your count queries with blank fields to get that to work.

    But the real question is why are you trying to combine the records and totals in the same query? Usually something like that is more commonly done on Reports and Forms, and that isn't too hard to do there (especially with the use of Subreports and Subforms).

    Note that you can also use the DCOUNT function within your query to return the record count from a table or query. Just note that the count would appear once on every row (record).

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

Similar Threads

  1. Specific Record Count
    By FormerJarHead in forum Queries
    Replies: 3
    Last Post: 08-23-2013, 11:02 AM
  2. Totals Query Record Count with Criteria
    By rmoreno in forum Queries
    Replies: 3
    Last Post: 06-07-2013, 09:16 AM
  3. Replies: 30
    Last Post: 08-15-2012, 02:25 PM
  4. Replies: 3
    Last Post: 08-03-2012, 02:37 AM
  5. Record Count
    By jgelpi16 in forum Queries
    Replies: 4
    Last Post: 12-02-2010, 09:22 AM

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