Results 1 to 3 of 3
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    DCount

    Good Afternoon,

    I need some help with an Access report. I am using Access 2003 with a database . I am also pretty new to coding and have no idea what I’m doing there, so I’m trying to keep it simple if possible. I am trying to create a report that counts the number of ICD9 by multiple criteria. The user would enter multiple criteria and than get a count off ICD9 codes.

    This is how the table looks like:
    Provider ICD-9 (1) ICD-9 (2) ICD-9 (3) ICD-9 (4)
    Doe1 719.40 719.46 719.40 719.40
    Doe1 719.46 719.46 719.46 719.46
    Doe2 710.10 719.60 719.40
    Doe2 710.10 710.10



    The user would enter the ICD9 Codes 719.4 and 719.46. The report would look like this.

    Provider 719.4 719.46 Grand Total
    Doe1 3 5 8
    Doe2 1 1
    Grand Total 4 5 9

    Thank you

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Part of the problem that is making it harder than it has to be is that your table is not normalized. You should not have mutliple or repeating ICD-9 values in each record (going across). You should have a separate record for each, i.e.

    Code:
    Provider    ICD-9 Number     ICD-9 Value
    Doe1               1            719.40
    Doe1               2            719.40
    Doe1               3            719.40
    Doe1               4            719.40
    Doe1               1            719.46
    ...
    See here for rules of database normalization: http://www.deeptraining.com/litwin/d...aseDesign.aspx

    Thenm you can use an Aggregate Query to count and group all your data. Then you may be able to use a Cross-Tab Query to get it in the format you desire.

  3. #3
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Joem

    Thank you very much. I will try what you suggested.

    Thank you

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

Similar Threads

  1. DCount
    By nsteenhaut in forum Queries
    Replies: 2
    Last Post: 10-04-2011, 05:00 PM
  2. DCount and If
    By Madmax in forum Access
    Replies: 3
    Last Post: 07-28-2011, 06:53 AM
  3. Dcount question
    By jpkeller55 in forum Access
    Replies: 4
    Last Post: 02-21-2011, 11:43 AM
  4. DCount and SQL
    By DSTR3 in forum Queries
    Replies: 3
    Last Post: 12-06-2010, 03:07 PM
  5. Help with Dcount
    By tozey in forum Programming
    Replies: 1
    Last Post: 08-10-2010, 10:53 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