Results 1 to 3 of 3
  1. #1
    amy_creatza is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    1

    Counting values by date


    Hi,I have a table(CustomerData) that stores interactions between agents and client and date of interaction. The fields are Agent-text, Phone-Number, Interaction Date-Date&time(like 1.1.2014 09:00 AM), Interaction Reason-text.Any idea of how can I count the number of customers that interacted again with an agent only if the new interaction is in less than 7 day from the previous interaction and not with the same agent in less than 2 hours?
    Last edited by pbaldy; 07-16-2015 at 02:26 PM. Reason: Remove youtube link

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Won't be easy. For a record to pull value from another record of same table requires subquery or domain aggregate function. Review: http://allenbrowne.com/subquery-01.html#AnotherRecord

    Your additional agent and time limit criteria are more complications.
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,746

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

Similar Threads

  1. Counting null values as Zero
    By missypooh1969 in forum Queries
    Replies: 6
    Last Post: 08-07-2014, 02:05 PM
  2. Counting figures between values
    By coach32 in forum Queries
    Replies: 1
    Last Post: 03-31-2014, 08:23 PM
  3. Counting values after a specific value
    By cardgage in forum Queries
    Replies: 5
    Last Post: 03-12-2013, 07:41 AM
  4. counting values
    By webisti in forum Access
    Replies: 1
    Last Post: 11-18-2011, 07:28 AM
  5. help counting distinct values
    By joo-joo-man in forum Queries
    Replies: 2
    Last Post: 10-17-2010, 05:18 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