Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    chelonidae is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    30
    Thanks, Steve. I'll take a look at it tomorrow and play around with it.

  2. #17
    chelonidae is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    30
    Steve - I had a chance to look at the zip you provided. Thank you for putting in so much time!
    One thing I noticed is that the values on the form for fields like Port, Area, etc look like the values I want, but in all the tables and queries, it is the lookup value ID (autonumber, PK) that is stored. My hope for the lookups is that the user only has a few choices and these are populated in the data tables for sorting, summarizing, etc. later.
    Example:
    Area reads as the number in the sequence it was entered in luAreas (e.g. 3, 15) instead of the areas selected (e.g. Area1, Area2). Should I be using these lookups using the lookup tabs in Design View instead of linking them using PK, FK?

  3. #18
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I'm not quite sure what you are asking......

    Quote Originally Posted by chelonidae View Post
    One thing I noticed is that the values on the form for fields like Port, Area, etc look like the values I want, but in all the tables and queries, it is the lookup value ID (autonumber, PK) that is stored.
    Tables are linked using PK & FK fields. I use autonumber type fields in my tables. These fields, PK & FK, have NO real world meaning. They are NEVER displayed in form or reports. This is the "normal" method to link tables in a RDBS.



    Quote Originally Posted by chelonidae View Post
    My hope for the lookups is that the user only has a few choices and these are populated in the data tables for sorting, summarizing, etc. later.
    This is also called cascading combo boxes (list boxes can work the same way). Open the table "luAreas". How many total areas are in the table? Close the table.
    Now open the form "frmMain". Notice there are 2 records entered. Click on the first record. Now click on the "Area" combo box in the subform. How many areas are shown?
    Click on the 2nd record in the main form. Now click on the "Area" combo box in the subform. How many areas are shown? Are they the same areas as when you clicked on the first record?

    Click on the NEW record row in the main form. Do not enter anything in any field. Click on the "Area" combo box in the subform.
    Now how many areas are shown?



    Quote Originally Posted by chelonidae View Post
    Area reads as the number in the sequence it was entered in luAreas (e.g. 3, 15) instead of the areas selected (e.g. Area1, Area2). Should I be using these lookups using the lookup tabs in Design View instead of linking them using PK, FK?
    Absolutely NOT!
    IMHO, there are 3 things that should never be set up/used in a table.
    1) Look up FIELDS (different from look up tables) See The evils of Lookup Fields
    2) Multi value fields (MVFs are hard to use and hide the true structure of the dB)
    3) Calculated fields ( calculations should be in queries)




    I did not create forms to add ports and areas. There should be a form to add ports; on that form there should be a subform to add areas for that port.



    It might help to see these
    Autonumbers--What they are NOT and What They Are

    Microsoft Access Tables: Primary Key Tips and Techniques <<--Read this many times

    Use Autonumbers properly

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

Similar Threads

  1. Replies: 3
    Last Post: 03-06-2017, 02:13 PM
  2. Replies: 5
    Last Post: 12-09-2014, 01:36 PM
  3. Replies: 4
    Last Post: 10-09-2013, 03:44 PM
  4. Replies: 3
    Last Post: 01-30-2012, 09:43 AM
  5. Update Tables from Combo Boxes in a Form
    By RedWolf3x in forum Access
    Replies: 3
    Last Post: 11-03-2011, 08:07 AM

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