Results 1 to 8 of 8
  1. #1
    siedne is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7

    Auto-sort from one table to sub-table

    I am helping my professor with her student database. I want to split the students up into pre-certified, certified and completed majors. I have one table now of all students.

    Can access automatically detect which student should go in which table if certain fields in the all student table are filled out in a certain way?

    Ie. If I enter information on a new student in the all student database, and leave the certification date field blank, is there some way access can detect this, dublicate the data and group this person in the pre-certified table?

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    You should not be putting them into those three tables. You should continue to use ONE table and you would have another table which is going to be a many table which you can assign students to one or more of those (because a student can have a completed major but still go on to do another one).

  3. #3
    siedne is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    Thanks for the quick response. How do I make a many table?

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by siedne View Post
    Thanks for the quick response. How do I make a many table?
    Well, the first thing I would suggest is to go read this about normalization:
    http://support.microsoft.com/kb/283878
    It will help you to understand what I am talking about. Normalized data is the key to most smooth running databases and also for making them the most easily updated with new information and then getting the data back out in a meaningful way.

  5. #5
    siedne is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    Ok, so now are you suggesting I make a one-to-many table with All Students as the main table?

  6. #6
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by siedne View Post
    Ok, so now are you suggesting I make a one-to-many table with All Students as the main table?
    That is essentially a correct statement.

  7. #7
    siedne is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7

    Red face

    Quote Originally Posted by boblarson View Post
    You should not be putting them into those three tables. You should continue to use ONE table and you would have another table which is going to be a many table which you can assign students to one or more of those (because a student can have a completed major but still go on to do another one).
    Ok so I've created one-to-many relationships for the database, but how do I assingn students to either pre-, certified or completed?

  8. #8
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Okay, let's take a step back here. Your structure is still not correct. You have a table for each subject and you should not. Your structure should look something like this:


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

Similar Threads

  1. Table lookup, sort of
    By avarusbrightfyre in forum Programming
    Replies: 1
    Last Post: 08-30-2011, 02:20 PM
  2. Auto-populate from another table
    By Palladian1881 in forum Access
    Replies: 2
    Last Post: 08-16-2011, 11:29 AM
  3. Auto Sort ID Field When DataBase Opens
    By lyndon.pace in forum Reports
    Replies: 1
    Last Post: 04-08-2011, 10:06 AM
  4. Replies: 0
    Last Post: 03-27-2011, 02:05 PM
  5. Auto sort a form when opened?
    By newtoAccess in forum Access
    Replies: 2
    Last Post: 03-19-2011, 03:22 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