Results 1 to 2 of 2
  1. #1
    chazcoral2 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    52

    From date to Date

    I have 16 people that enter about 50 entries per day. As they enter them they use a calander popup to enter the date in this format 00/00/0000 At the end of the month I want to run a report that shows each team members total for the month. How do I need to run the query to search from 4/1/2011 - 4/30/2011?

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    One way is to create an unbound form with two textbox controls and a button. You would use the textbox controls for the beginning and ending date of the period you want and pass that to a query. For the button, I would use the button wizard to open the query.

    With respect to the query, you will first need a query to gather the correct detail records based on your date criteria; the query would look something along these lines (you will have to substitute your own field and table names)

    query name: qryMonthlyDetail
    SELECT person
    FROM yourtable
    WHERE yourdatefield BETWEEN forms!formname!startdatecontrolname AND forms!formname!enddatecontrolname

    Then a query to do the counting

    SELECT person, count(person) as CountOfThingsEntered
    FROM qryMonthlyDetail
    GROUP BY person

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

Similar Threads

  1. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  2. Set date field on subform to date variable
    By laavista in forum Access
    Replies: 4
    Last Post: 06-30-2010, 06:32 PM
  3. set date field on form to date variable
    By laavista in forum Access
    Replies: 3
    Last Post: 06-28-2010, 03:03 AM
  4. Replies: 9
    Last Post: 03-19-2010, 10:37 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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