Results 1 to 2 of 2
  1. #1
    alynn1976 is offline Novice
    Windows 10 Office 365
    Join Date
    May 2023
    Posts
    1

    Count Unique Fields in Access Report


    I am working in an Access report. I need my text box control source to calculate the number of tractor names without duplicates. For example:
    Tractor1
    Tractor2
    Tractor4
    Tractor1
    Tractor1
    I would need the total to be 3 instead of 5.

    I can find a formula for this.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Build a query object: SELECT DISTINCT fieldname FROM tablename WHERE some criteria here;

    Expression in textbox: =DCount("*", "queryname")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. count unique record in report footer
    By babar_bhaai in forum Reports
    Replies: 2
    Last Post: 09-05-2016, 09:30 AM
  2. Count Unique Records in a Report
    By Mohmand in forum Reports
    Replies: 2
    Last Post: 09-10-2014, 10:44 PM
  3. Replies: 5
    Last Post: 03-17-2014, 04:02 PM
  4. Count unique customers in report header
    By hithere in forum Reports
    Replies: 7
    Last Post: 02-08-2013, 12:47 AM
  5. Count Unique Fields and then get Average
    By Kirsti in forum Queries
    Replies: 5
    Last Post: 02-19-2012, 07:25 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