Results 1 to 5 of 5
  1. #1
    cmyers is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2014
    Posts
    4

    Compare teachers and their courses

    Hey all!



    I've created a Database to reference teachers with the courses they've taught. The last names are pulled from a different sheet which has contact information. Since a course is unique to the code in the first column, I've used it as the Key in the format (TTTT ####). This means that over time, a course may remain active, but it will switch between teachers. Because of this, I've allowed multiple selections in the drop-down of the instructor(s) column. What I want to create is a subdata sheet that displays the courses a teacher has taught, but access won't allow that on the contact sheet since Instructor(s) allows multiple choice. Can I use a form/query to pull this data? Thanks for any help!

    Click image for larger version. 

Name:	AccessScreenshot.jpg 
Views:	17 
Size:	83.2 KB 
ID:	17315

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It looks to me like the structure is incorrect. I don't know how you would get the info you want without several queries and/or a lot of VBA code.

    (try this in a copy of your dB first)
    I would have fields: (NO look-up fields)

    Field Name........... Field Type
    -------------------------------
    CourseID_PK.........Autonumber
    Instructor_FK..... ..Long Integer (to a look up TABLE)
    SemesterYr_FK......Long Integer (to a look up TABLE)
    CourseName.........Text



    Now finding out which courses a teacher has taught is a simple query.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Data structure is troublesome at best. The checkbox fields are for semesters? Multiple similar name fields for same data is an indication of non-normalized structure and can cause serious issues with searching and filtering, even more difficult because they are yes/no fields.

    To get the output you want from current structure requires a query that expands the multi-value Instructor(s) field to individual records and apply filter/sort criteria http://office.microsoft.com/en-us/ac...010149297.aspx. I NEVER use multi-value fields.

    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention. The parens in Instructor(s) is bad.
    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.

  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,726
    cmyers,

    I agree with June7 and Steve that your structure is not supporting your requirements very well. I have a suspicion that you have an Excel/spreadsheet background, and may make learning Access more difficult than no Excel background.

    For database, in my view, you really need a good description of WHAT you are trying to do. With Teachers and Courses there is often Student, Semester, Course, Class, Grade, Roster....

    It seems you are working with a small corner of this. Perhaps you could tell us more about WHAT you are trying to do. You have shown us how you have tried to do something, but we don't know the "business need".

  5. #5
    cmyers is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2014
    Posts
    4
    Thanks for all the help guys!

    Orange had the correct suspicion, I'm a big excel guy working on a project to bring information into a database. There isn't data beyond this as far as students, etc, but the other datasheet contains information about the professors. The main goals of the database are to 1) store the information about when a course was offered, last approved, and taught by who so that we can 2) analyze the data to track which courses need to be re-reviewed, see why a course may have stopped being offered, or try to answer other questions of the data.

    These courses operate through a relatively new department (center for public service) but new procedures as far as reviewing courses for integrity means that the paper/excel records need to go to something more powerful. Thanks again for the tips and hopefully this info helps!

    Edit: Forgot to mention that while I'm creating this database, it serves to help people who aren't terribly knowledgeable about Excel, Access, etc. I plan on then creating forms/queries for them to access the info and add data, and then passing it on to them for their use.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-15-2013, 03:18 PM
  2. Comparing Promotion Requirements with courses
    By ahmad_3011 in forum Access
    Replies: 16
    Last Post: 06-19-2013, 04:45 PM
  3. Replies: 4
    Last Post: 10-31-2012, 02:13 PM
  4. Basic DB to record Students Courses PLEASE HELP
    By littleliz in forum Database Design
    Replies: 5
    Last Post: 09-14-2010, 02:58 PM
  5. courses query
    By lolo in forum Queries
    Replies: 0
    Last Post: 04-23-2010, 01:00 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