Results 1 to 5 of 5
  1. #1
    wendylb is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2023
    Posts
    1

    Linking a table to a form with a lookup field

    Hello everyone



    Hopefully this is a straight forward question! I am very out of practice (not used Access for over 20 years!) so I am extremly rusty!

    I have successfully created a table and a linked form. It works very nicely - I can now very easily see our database of potential customers. I have decided that I want to add a field showing whether they are retailer, maintenance or construction. I have added a lookup field to the table - it has a drop down box which allows me to choose either 1, 2 or all of those options depending on the context of the business.

    I have added it to my form (well I thought I had!) and it doesn't work. Instead of showing me which industry for each record, each form just shows all 3 industries. On the Design View for the form, the box where the answer is supposed to show says 'unbound'. But I thought I had bound it to the table because I chose which field from the table I wanted it to link to.

    Does anyone know what I am talking about (!) and can help?! I have googled it and looked at videos but I find the guides not exactly what I want and they are difficult to understand too :/

    Any help would be very much appreciated.
    Wendy

    EDIT: I have just deleted the field from the form and just added an existing field, linking it to the table. It now works better but is only showing the first industry in the drop down, so for example, all first 5 records just say retailer when in fact a couple of them in the table are retailer AND maintenance

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Wendy
    Welcome to the Forum.
    Are you able to upload a zipped copy of the database with no confidential data?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Do not have lookup field in the table. Period.
    Just create the lookup in a combo.
    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

  4. #4
    xps35's Avatar
    xps35 is online now Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    As you describe it, you need to make it a multiple value field wich is not a good idea either. Use a junction table.
    Groeten,

    Peter

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Hi Wendy
    Welcome to the forum.

    I agree with Welshgasman. Do NOT have lookups at the table level. Use a combo on a form for lookups. See attached:
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Linking Auto lookup Field values
    By Crystan in forum Queries
    Replies: 3
    Last Post: 10-15-2019, 08:53 PM
  2. Replies: 2
    Last Post: 06-20-2018, 11:21 PM
  3. Linking tables...should it be a lookup table?
    By Paulobo in forum Database Design
    Replies: 1
    Last Post: 04-20-2018, 09:17 PM
  4. Lookup Tables - how to use without linking in table design
    By grapevine in forum Database Design
    Replies: 15
    Last Post: 08-29-2017, 01:50 PM
  5. Linking table value to a text field in a form
    By newbie_204 in forum Access
    Replies: 1
    Last Post: 11-19-2015, 10:08 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