Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,840
    I'm surprised that nothing was said about spaces and special characters in names ( / ) or using reserved words as names (e.g. Date).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  2. #17
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,004
    Quote Originally Posted by Micron View Post
    I'm surprised that nothing was said about spaces and special characters in names ( / ) or using reserved words as names (e.g. Date).
    Baby steps...
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #18
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,840
    That IS a baby step. Proper design precedes everything - at least IMO.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #19
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,004
    Quote Originally Posted by Micron View Post
    That IS a baby step. Proper design precedes everything - at least IMO.
    I agree, but suspect the suggested use of the FK in the child table is not being used.
    Happy for the OP to prove me wrong.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #20
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    And maybe a mention that ALL CAPS IS EQUIVALENT TO SHOUTING??

  6. #21
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,840
    Quote Originally Posted by ssanfu View Post
    And maybe a mention that ALL CAPS IS EQUIVALENT TO SHOUTING??
    You're referring to post #1? Maybe that's just an accurate representation of the actual field names.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #22
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    @Minty
    If I may ask...
    What will happen if I happen to store the full name in the income table?

  8. #23
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @ Micron,
    Actually, I was looking at the dB posted by the OP. All of the field names were caps.... As were the objects in the Nav pane.....my eyes are still tired. (maybe it is just me being picky)

  9. #24
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,840
    Maybe that format just looks good on a form or report. Sure would be easier than re-typing all the labels but the object names might be a bit much. As long as it's not all caps in a post I wouldn't object.

    Yeah, I think you might just in a foul mood like I am lately. The elevator is often stopped in the basement if you get my drift.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  10. #25
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,004
    Quote Originally Posted by Emmanuel View Post
    @Minty
    If I may ask...
    What will happen if I happen to store the full name in the income table?
    Well the world won't stop turning, so this is all just best practice.

    Let's assume Mary Smith has lots of records. She is stored as

    MemberID Fname Lname
    2 Mary Smith


    She is stored in the Name version of your table as

    Income_ID MemberName
    375 Mary Smith
    376 Mary Smith

    Mary get married and is now called Mary Jones

    In the name version you have to change her name in the member table and also every record in the income table that she has.

    If it was stored as

    Income_ID MemberID_FK
    375 2
    376 2

    You only change the name once in the member table and all the forms, and reports are magically correct, no alteration of any of you other data where that member is referenced is required.

    Also by storing the full name in the second table you have to join on both FName and LName fields to be able to look up any other member information, which isn't ideal.

    This also applies if a simple typo was made in the name.
    By storing it everywhere you have to ensure you update it everywhere.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  11. #26
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    @Minty
    Very well explained
    I get your arguments now

  12. #27
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,034
    Quote Originally Posted by Emmanuel View Post
    @Minty
    Very well explained
    I get your arguments now
    Obviously, I need to do better?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  13. #28
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    @ Welshgasman
    You did great too
    I do appreciate

  14. #29
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,034
    Quote Originally Posted by Emmanuel View Post
    @ Welshgasman
    You did great too
    I do appreciate
    Not really. I said or tried to say the same thing, but the message did not get through.?
    I tend to try an stimulate a spark in the O/P that makes the O/P think 'Ah I see now'

    Missed it in this case?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  15. #30
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    @ Welshgasman
    No worries buddy
    What matters most is that we’ve got each other’s back👍🏽

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

Similar Threads

  1. Replies: 10
    Last Post: 08-19-2018, 01:22 PM
  2. Replies: 3
    Last Post: 06-16-2018, 11:12 PM
  3. Combo box selection fills in list box
    By Mouse51180 in forum Forms
    Replies: 20
    Last Post: 03-29-2017, 06:35 AM
  4. Replies: 1
    Last Post: 03-27-2012, 07:10 AM
  5. Checking List Box Value with Combo box selection
    By empyrean in forum Programming
    Replies: 1
    Last Post: 10-23-2009, 06:01 PM

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