Results 1 to 9 of 9
  1. #1
    edesign is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4

    Need Help about students record

    Hi Everyone!


    I have created database for students.
    I have two tables.One for stduent record other for cities.
    I want to search database based on cities.
    and print report regarding students.i.e print all students who are from 'New York'. etc

    Please help me regarding this.
    I have attached sample DB.
    Attached Files Attached Files

  2. #2
    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,870
    What exactly is your question? What do you need help with?

  3. #3
    edesign is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4
    Quote Originally Posted by orange View Post
    What exactly is your question? What do you need help with?
    My question is "what query should i apply to print report regarding each city? i have many cities like New York, Washington etc"
    I want to print how many students are from New York,Washington etc on different reports.

  4. #4
    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,870
    You have no student data in your database.
    Suggest you look at finding the info you want with a query first.


    This should give you a count of Students per City.

    Code:
    SELECT Count(Students.StdName) AS CountOfStdName, Students.City
    FROM Students
    GROUP BY Students.City
    ORDER BY Students.City;
    You may find more info on Group By at http://www.3schools.com

  5. #5
    edesign is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4
    Thanks @Orange
    how can i generate report in access based on query

  6. #6
    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,870
    Have you tried using the Report Wizard with your Students table?

    Reports have their own sorting and grouping, so working with the table should be fine.

  7. #7
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi,

    I am only a beginner too but I am also working on a student DB. I think what you are trying to do is enter the city for each student record. To do that you'll need to add a city field to the Students table. Also, I have created a relationship between the two tables. I am not sure how familiar you are with Access, but I suggest opening up the tables and looking at the settings. There are so many little things about Access that the best way to learn is by coping your existing DB and then playing with it. This forum is great, there are alot of great people here how have helped me tremendously. Asl lots of questions.

    I would like someone else to maybe have a look to see if what I've doen/suggested is okay. This is my first ever reply to a post.

    Take care,

    Daryl

    Update DB attached
    Attached Files Attached Files

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would like someone else to maybe have a look to see if what I've doen/suggested is okay.
    The only things I would suggest is:

    1) Object names should only contain letters, numbers and/or the underscore. No special characters......
    2) Fields like zip codes, Phone numbers, SSNs should be a text type, not number. If you plan on doing calculations, the field should be number type.



    My $0.02.....

  9. #9
    edesign is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4
    Thanks @Daryl2106 and @ ssanfu

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

Similar Threads

  1. How to get TOP 10 Students Result
    By Jamaluddin in forum Queries
    Replies: 1
    Last Post: 03-11-2012, 05:12 AM
  2. Students database
    By berni3883 in forum Access
    Replies: 8
    Last Post: 03-29-2011, 03:21 PM
  3. Basic DB to record Students Courses PLEASE HELP
    By littleliz in forum Database Design
    Replies: 5
    Last Post: 09-14-2010, 02:58 PM
  4. Check of the students every day
    By carstenhdk in forum Forms
    Replies: 11
    Last Post: 05-23-2010, 04:33 AM
  5. Students
    By Rohit0012 in forum Reports
    Replies: 8
    Last Post: 10-27-2009, 04:04 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