Results 1 to 5 of 5
  1. #1
    yiega is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    7

    database

    hi guys,i have an access 2007 problem that i need help with...i am making a school database and i have reached a wall,okay heres the scenario.this school rewards the best performing students at the end of every term. The top 3 students in each class are awarded book vouchers whose values are as shown.on the tabel below.
    i have a table with student details, a table with the schools "form" and an already calculated table of students marks,and average scores.so my question is,how do i make access to choose only the top 3 best performing students in each "form" and award them correctly with the book vouchers..plz help


    class postion 1 postion 2 postion 3
    Form 1 1,100 900 600
    Form 2 1,300 1000 700
    Form 3 1,600 1,200 800
    Form 4 2,000 1,500 1,000

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    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
    yiega is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    7
    okay,june 7 i have seen the link but i guess that code is for sql,am not very familiar with sql codes. could i get may b an access link to the topN

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    SQL is the language that drives the queries in Access. In the upper left corner when you are in query design view (QBE) there is a drop down. Click on it and it will show several options. Once is SQL. Copy and paste Allen's code into the SQL window. Amend it for your field and table names. Click on the design view to see in the QBE. This will help you to understand and learn some basic SQL. Also a good site to help understand SQL is at http://www.w3schools.com/sql/default.asp

  5. #5
    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,738
    It appears to me that you may be more familiar with Excel than Access (based on your layout).
    Do NOT confuse a spreadsheet with a database table.

    There is no "Access link to TOP N". As Alan says -- it's SQL and the query by example screen has options to show the SQL.
    Good luck with your project.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-28-2013, 04:42 PM
  2. Replies: 1
    Last Post: 01-16-2013, 12:40 AM
  3. Replies: 5
    Last Post: 05-16-2012, 12:48 AM
  4. Replies: 20
    Last Post: 08-08-2011, 01:34 PM
  5. Replies: 3
    Last Post: 05-15-2011, 10:52 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