Results 1 to 8 of 8
  1. #1
    chevenowner is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    3

    Exclamation Want to add additional Drop down options, Tables and Queries to my database ( I am Access Novice)

    Dear All,



    I have been asked to work on this Access database which works perfectly fine at the moment. Its a database to collect Course attendance records, Pretty simple.

    I want to add list of 2015 courses and have a seperate tab for 2015 courses(just like 2012,2013,2014).All the courses are setup as queries, which is why i can not seem to add to them.If you go in 2014, 2013 tab you will see list of coures for those years, i just want exactly same thing for 2015. All the courses are same, juwst their name is slightly diff.

    I hope i am making sense,

    If you can help i will be grateful.

    I am attaching the database for you guys

    Any help will be appreciated

    Thanks
    Hamza
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Look at the query, it will tell you what table the data is in.
    This is a bad way to design your form.
    The year should be in a combo box. user picks the year, THEN gets the courses.
    You need a new form design.

    This hardcoded design is not easy to modify. (hence your post)

  3. #3
    chevenowner is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    3
    I know exactly where all the data is and table, i just can not seem to add 2015 list of courses and have a seperate tab for it.

    If you open the database attached, it will make more sense, i know i am not doing a good job of explaining it.

    Thanks
    Hamza

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Make a new form
    with a combo of years (default current year)
    a table of courses
    member details is find.

    sorry about the bad design.

  5. #5
    chevenowner is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    3
    Ya i agree with you totally, thats why i can not seem to do it.. So how do i add list of 2015 courses to it ?

    Its being design by some one else not me

  6. #6
    Jim Connell is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    4

    Life is easier if you Normalize your Data

    Hi Hamza:

    You've made life a bit difficult for yourself. Your tables need to benormalized.

    1 table for Courses
    1 table for Students
    1 table for courses offered during a semester
    1 table for students assigned to courses

    This is an no the fly design but I think you'll get the idea

    The course table:
    CourseKey (autonumber)
    Course ID: the ideitifier a Human sees
    Course Name
    etc

    The Student Table:
    StudentKey(autonumber)
    StudentID: theidentifier a Human sees
    FirstName
    LastName
    Etc.

    Courses Offered DuringSemester
    CourseSemesterKey:Autonumber
    CourseKey
    SemesterID
    StudentCourseKey
    CourseSemesterKey
    StudentKey
    With thisapproach everything is held in just a few table and you gain the ability to transition to new semesterswith ease

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    What ranman is trying to tell you is that you will have to create a new tab for every year as long as this database exists. the tables are not defining the cy/fy of the class, each button you click on each year is using a criteria for a specific query in your object window. This is a terrible terrible design as has already been pointed out and if you intend to keep it without altering the design of the tables/restructuring the whole database you'll have to add data the same way it's already been added and make queries for each class for each year to have this work. Then attach the queries to the appropriate button on a new tab of your form.

    Edit: I don't think it was clear in my original post. Your database is basically 'dumb' it can not identify which classes were in which year. It is relying on you to create a query with the correct identifier to tell it which year it's in. The only place I can see any sort of information is in the description of the class which does not carry over to the criteria in the query.

    Look at the button on the 2011 tab

    IB04 Feb 11
    When you click it it brings up the query qry_IB04_Feb_11
    The query itself has a specific criteria in the field Introductory Briefing (the value 2)
    If you go to your tables tbl_IB_Courses and look up the value for the key 2 you will see the value (course description) IB04 Feb 11

  8. #8
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    college2.zip

    Examine this version and see if its the direction you want to go?

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

Similar Threads

  1. Replies: 1
    Last Post: 08-11-2014, 09:57 AM
  2. Really novice question regarding queries
    By ggdoggie in forum Access
    Replies: 9
    Last Post: 06-11-2014, 01:39 PM
  3. Novice Needs Help With Simple Select Queries
    By GAtkins in forum Queries
    Replies: 5
    Last Post: 11-26-2013, 04:36 PM
  4. Code to drop tables and optimize database on closure
    By registoni in forum Programming
    Replies: 4
    Last Post: 09-25-2013, 12:53 PM
  5. Replies: 3
    Last Post: 06-24-2010, 07:18 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