Results 1 to 4 of 4
  1. #1
    gsrikanth is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    3

    aggregate functions

    i need domain aggregate functions to count the occurrences of specific value in a field, and when it exceeds 1, display null. or 'group by' subqueries with count() to see if you should populate the field or not. find the attachment

    link acc.accdb

    i need like below


    Click image for larger version. 

Name:	1.jpg 
Views:	25 
Size:	13.4 KB 
ID:	8371

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Build a report. Use Grouping & Sorting features. Group on the D NO field. Use RunningSum property (available on reports, not forms) of textbox to produce the sequential numbering. Report textboxes also have a HideDuplicates property.

    I downloaded your project. It appears to be corrupted because Access tries to repair when I open it (inconsistent state error) but fails.
    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.

  3. #3
    gsrikanth is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    3
    try this

    link 1.mdb

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Yep, the HideDuplicates Yes gives that output. Try it.
    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. Replies: 5
    Last Post: 02-23-2012, 05:22 PM
  2. Aggregate Query
    By DonL in forum Queries
    Replies: 1
    Last Post: 08-04-2011, 09:54 AM
  3. Using an Aggregate in a query
    By jbh02 in forum Queries
    Replies: 0
    Last Post: 09-15-2009, 07:29 PM
  4. Replies: 1
    Last Post: 12-11-2008, 01:28 PM
  5. Replies: 0
    Last Post: 06-07-2007, 02:33 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