Results 1 to 4 of 4
  1. #1
    akedm is offline Novice
    Windows 11 Office 365
    Join Date
    Jan 2024
    Posts
    8

    New. So I dont know the right words for what I'm asking.


    Hi,

    This may be why I do not know how to find what I want.

    I have two tables: Employees, and Devices. One table of employees and their ID, and another table of devices and their ID. The purpose of the database is to link employees to the devices they use. For example, employee ID 15 is using device ID A10. It's more of a object exercise, but the idea is I'm linking devices to employees.

    Ok so I got all this set up and a form ready. What I want is to have the form display the name of the employee and device when I type in the ID for each, as like a confirmation: I type in 15 and the name "Jack Smith" pops up. I type in A10 and the device name "Company Laptop" comes up.

    As you can tell, I do not know the terms for what I'm asking. I'm in Form Design > Controls. I assume what I need is in this section. What do I do next.

    Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you use a combo box you can have both pieces of information displaying. User would select the ID and you can view the description:

    https://www.baldyweb.com/Autofill.htm

    You may need another table, unless and employee can only have a single device. I guess you could have an employee ID field in the devices table presuming a device can only be linked to a single employee.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    akedm is offline Novice
    Windows 11 Office 365
    Join Date
    Jan 2024
    Posts
    8
    Cool. Thank you. I did come across a combo-box instructional, but being new I just didnt see how "combo-box" equated to "display field" and thought I was in the wrong section. You know. I'll look at that again.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, and welcome to the forum by the way!

    A combo is nice because you can limit the user's entry to legitimate choices, rather than allowing free entry in a textbox.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. new to access and dont know if it will meet my needs
    By bill.blanford in forum Access
    Replies: 4
    Last Post: 09-18-2019, 07:37 AM
  2. If one works, the other dont.
    By Vegaanders in forum Reports
    Replies: 2
    Last Post: 06-16-2016, 07:00 AM
  3. vba code dont work
    By mikichi in forum Programming
    Replies: 7
    Last Post: 11-12-2013, 01:59 PM
  4. Replies: 12
    Last Post: 09-04-2013, 02:51 AM
  5. Oat-so-simple but i dont have a clue
    By turbo910 in forum Forms
    Replies: 13
    Last Post: 11-26-2009, 12:28 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