Results 1 to 3 of 3
  1. #1
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318

    DCount for Multiples

    I am wanting to do a DCount with two variables. I am pulling the data from a Query that filters all the outstanding items. In the D count I want to show a count of the 'Alarms' from 'Jan'. I could do individual queries but I thought I could do it this way (I have 6 systems with 12 months each and was going to change the system and month for each field). Please let me know what my equation is missing.



    =DCount("[System]","Q_Metric_System_Breakdown","[System]='Alarm'")&("[Month]","Q_Metric_System_Breakdown","[Month]='Jan'")

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    i don't know if two vars will work, but try this:
    Code:
    =DCount("System","Q_Metric_System_Breakdown",
    
    "[System]='Alarm' AND [Month]='Jan'")
    the date field has to be a string though.

  3. #3
    Huddle is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    318
    Didn't work. I got a #Error as a result

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

Similar Threads

  1. DCount and SQL
    By DSTR3 in forum Queries
    Replies: 3
    Last Post: 12-06-2010, 03:07 PM
  2. Help with Dcount
    By tozey in forum Programming
    Replies: 1
    Last Post: 08-10-2010, 10:53 AM
  3. DCount realtime
    By Patience in forum Access
    Replies: 2
    Last Post: 06-24-2010, 06:20 AM
  4. Using count or Dcount
    By ddcook in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:35 PM
  5. Dcount on report
    By mattbrem in forum Reports
    Replies: 2
    Last Post: 06-06-2009, 01:33 AM

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