Results 1 to 4 of 4
  1. #1
    tareksul is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2010
    Posts
    6

    Query + monthly report

    Hello everyone, I have very little expierience with access and need some professional assistance.

    I have a database that allows any teacher to make "warnings" for students who misbehave. I need a report generated every month for the school principle. It will show all the students who misbehaved during that month and sort the students from the most warning to the least.

    I have a table with all the students


    A table for all the teachers.

    A table is made for "warnings" in which a form is used to select a students name, select the act of misbehaving, and select the complainign teacher

    Thnks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This type of thing:

    SELECT StudentID, Count(*) AS HowMany
    FROM TableName
    GROUP BY StudentID
    ORDER BY Count(*) DESC

    You'd probably want to add a WHERE clause for a time frame, and join in the students table to get the names.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tareksul is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2010
    Posts
    6
    This is exactly what i need, thkns.

    do i copy waht u wrote and where do i paste it to?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    That is SQL; you could copy/paste it into a new query in SQL view, or use the Totals icon to reveal the Totals row on an existing query. If you copy that, you'll obviously have to substitute your table and field names.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Obtain the MAX values on a monthly basis
    By rajmns in forum Queries
    Replies: 1
    Last Post: 12-14-2010, 02:32 PM
  2. Replies: 5
    Last Post: 11-24-2010, 11:46 PM
  3. Import Monthly Backlog - Excel
    By eww in forum Import/Export Data
    Replies: 2
    Last Post: 08-17-2010, 02:38 PM
  4. Automated Email Reports - monthly no clicks
    By Bamber in forum Reports
    Replies: 1
    Last Post: 05-12-2010, 12:34 PM
  5. Replies: 7
    Last Post: 12-14-2009, 04:49 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