Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    No, Access should recognize name change in queries/forms/reports except for some expressions that include table name. VBA code will not recognize change. Not sure about macros.



    But data should not be lost. Make a copy of db first because corruption does occasionally happen.
    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.

  2. #17
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Steve,

    In tblAssignments, you have a CourseID_FK but it doesn't have a relationship to anything. Is this intentional? SchoolYear in my fb is GradeLevel, I changed the name. I'm debating if I need School year in the sense that you are thinking. I may not need it. And if I want to view one table where I can see Student Name, Grade Level, Course, Assignment and Grade (Score). Where we I see all this together.

    Also, when using all of these ID numbers, how can I see real names instead of numbers.

    Thank you!

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Join tables in queries to retrieve related data.

    Use multi-column comboboxes on forms.
    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. #19
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by MichaelA View Post
    In tblAssignments, you have a CourseID_FK but it doesn't have a relationship to anything. Is this intentional?
    In table tblAssignments, how would you know which assignments belong to which course if there wasn't a CourseID_FK??



    Quote Originally Posted by MichaelA View Post
    SchoolYear in my fb is GradeLevel, I changed the name. I'm debating if I need School year in the sense that you are thinking.
    Not sure what fb means (Faculty of Business, Flying Bridge, Followed By ....) but if you mean changing "SchoolYear" to "GradeLevel" (Freshman, Sophomore, Junior, Senior), I can see that. (Still, might want to know what year they attended??)



    Quote Originally Posted by MichaelA View Post
    And if I want to view one table where I can see Student Name, Grade Level, Course, Assignment and Grade (Score). Where we I see all this together.
    You wouldn't "view one table", you would create a query. (ie a virtual table). Then use that query as the record source for a form or report. Could filter i down to one student or a group of students or a grade level.




    Quote Originally Posted by MichaelA View Post
    Also, when using all of these ID numbers, how can I see real names instead of numbers.
    Only the developer should be able to see the raw table data, so seeing the "Real Names" instead of the foreign key value is not important.

    Seeing the "real names - it depends:
    If doing data entry, then use combo boxes (as June said).
    Viewing form/report, then use the query route.


    After saying all that, there is nothing stopping you from using Look-up FIELDS. But, unless you really understand HOW to use look-up FIELDS, be prepared for some headaches.
    Most experienced developers stay away from them..


    --------------------------------------------------------------------------------------------------------------------------------------
    Don't know if you've ever seen The Ten Commandments of Access...

    In that page is The Evils of Lookup Fields in Tables
    Note: Look-up FIELDS (BAD) are different than Look up TABLES (Good).

  5. #20
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Thank you, again, for your help and time.

    Quote Originally Posted by ssanfu View Post
    In table tblAssignments, how would you know which assignments belong to which course if there wasn't a CourseID_FK??

    I get that part, I just thought the FK would need to be related in the table for it to be recognized.


    Not sure what fb means (Faculty of Business, Flying Bridge, Followed By ....) but if you mean changing "SchoolYear" to "GradeLevel" (Freshman, Sophomore, Junior, Senior), I can see that. (Still, might want to know what year they attended??)

    Sorry, typo, should have been Db (Database)


    You wouldn't "view one table", you would create a query. (ie a virtual table). Then use that query as the record source for a form or report. Could filter i down to one student or a group of students or a grade level.

    OK, that makes sense.


    Only the developer should be able to see the raw table data, so seeing the "Real Names" instead of the foreign key value is not important. Got it

    Seeing the "real names - it depends:
    If doing data entry, then use combo boxes (as June said).
    Viewing form/report, then use the query route.


    After saying all that, there is nothing stopping you from using Look-up FIELDS. But, unless you really understand HOW to use look-up FIELDS, be prepared for some headaches.
    Most experienced developers stay away from them..

    I've removed all my look-up fields


    --------------------------------------------------------------------------------------------------------------------------------------
    Don't know if you've ever seen The Ten Commandments of Access...

    In that page is The Evils of Lookup Fields in Tables
    Note: Look-up FIELDS (BAD) are different than Look up TABLES (Good).

  6. #21
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    Thank you. I got this figured out. I created a join table for courses and students and generated a query [qryEnrollments] based on it.

    Quote Originally Posted by June7 View Post
    Join tables in queries to retrieve related data.

    Use multi-column comboboxes on forms.

  7. #22
    MichaelA is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2019
    Location
    Wisconsin
    Posts
    139
    I like this and I'm looking at it but when I tried to make some of the changes, I got some undesirable results in my queries and forms. I'll work on it more in the coming weeks.

    Quote Originally Posted by ssanfu View Post
    "Old Programmer's Rule" is this: If you can't do it on paper then you can't do it in Access. Until you can draw out your tables AND rules for how they change for each function you want to perform, you are going nowhere fast.




    A junction table is how a many-to-many relationship is implemented. An example of a many-to-many relationship would be:
    One student can attend many years. (One-to-many relationship) and
    One year can have many students (One-to-many relationship)

    One way to look at the tables
    Attachment 39812

    another way to look at it
    Attachment 39813

    Both depict a many-to-many relationship.


    You should read these. This concept is very important:

    What is Normalization?
    =======================
    What Is Normalization, Part I: Why Normalization? http://rogersaccessblog.blogspot.com...on-part-i.html
    What Is Normalization, Part II: Break it up. http://rogersaccessblog.blogspot.com...n-part-ii.html
    What Is Normalization: Part III: Putting It Back Together http://rogersaccessblog.blogspot.com...-part-iii.html
    What is Normalization: Part IV: More Relationships http://rogersaccessblog.blogspot.com...n-part-iv.html
    What Is Normalization: Part V: Many-to-Many Relationships http://rogersaccessblog.blogspot.com...on-part-v.html




    Work through these tutorials - take the time to actually do them.
    Tutorials
    --------------
    http://www.rogersaccesslibrary.com/forum/forum46.html


    ------------------------------------------------------------------------------------------------------------------------------------------
    I was looking at your design again. What do you think of this? (Notice the table name changes)
    Attachment 39814

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. MS Access and MS VBA Courses / Help
    By seamonkey in forum Access
    Replies: 11
    Last Post: 01-17-2018, 03:32 PM
  2. Training Courses
    By pmangan in forum Access
    Replies: 5
    Last Post: 10-17-2017, 01:49 PM
  3. Replies: 10
    Last Post: 08-22-2015, 05:59 AM
  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