Results 1 to 4 of 4
  1. #1
    justgeig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    45

    No lookup fields at table level then what?

    If you shouldn't use lookup fields at the table level, what do you do to avoid them? My ultimate goal is to have a nice form to enter data into and avoid letting the end-user see the ID for a specific table.

    I have a database with a Customers table. In that table is a DistributionType number field that links to the ID field of a DistributionTypes table (referential integrity is enforced to prevent bad data being entered.) I have all my reports using the ID field and that's ok because I know what ID #3 is referring to. I want a data entry form for my end-users that will use a drop down box to allow them to choose a DistributionType based on the actual name and not the number. Am I coming at this wrong?
    Attached Thumbnails Attached Thumbnails Capture.JPG  

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Store the Id number from DistributionTypes in the field in BrochureCustomers. On the form have a combo box that is bound to the field in BrochureCustomers. Use DistributionTypes as its Row Source but hide the first column so that the user only sees the DistributionTypes and not the Id.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    justgeig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    45
    THANKS! I was so close :-) All I was missing was the Combo box ... I was trying to create a look-up on the actual field in the form instead of on a separate control and then storing that result into the correct field.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If you shouldn't use lookup fields at the table level, what do you do to avoid them?
    Use look-up tables. Much easier to add items to a look-up table, among other benefits. Plus, if you ever decide to convert to SQL Server, SQL Server Express, etc, you won't have to redesign you databsse - look-up fields are not supported in the "big boy" databases.

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

Similar Threads

  1. Replies: 8
    Last Post: 03-22-2012, 08:48 AM
  2. Importing into Table with Lookup Fields
    By Fstrategic in forum Import/Export Data
    Replies: 7
    Last Post: 02-16-2012, 05:26 AM
  3. Multiple fields to the same Lookup Table
    By igooba in forum Database Design
    Replies: 9
    Last Post: 01-03-2012, 04:14 PM
  4. Lookup table combining 2 fields
    By jhoff in forum Access
    Replies: 1
    Last Post: 07-27-2011, 09:31 AM
  5. Lookup Fields
    By mikel in forum Access
    Replies: 3
    Last Post: 03-03-2010, 07:56 AM

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