Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5967715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:59:03+00:00 2026-05-22T19:59:03+00:00

I have a Access DB and 2 tables I need to set the relationships

  • 0

I have a Access DB and 2 tables

I need to set the relationships but need some help.

table 1

id
name
address
postcode
room-name

table 2

room-names

Then table 2 contains data:

eg:

kitchen, bedroom etc

How do I do this join so that table1 room-name field contains table 2 room-names list?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:59:03+00:00Added an answer on May 22, 2026 at 7:59 pm

    The best way to do this is to create a field in table one called “room_name_id” and set it as a Number. It will take up less space in the mdb file over time. (Sidenote: You can’t use “name” as a field name since “name” is a reserved word in Access.)

    Next create table two so you have an “id” field and a “room_name” field. So if “Spare room” contains id 1 then in table one, room_name_id could be 1.

    Here’s the SQL that you could use on a query.

        SELECT tblInfo.username, tblInfo.address, tblRoomNames.room_name
    FROM tblRoomNames INNER JOIN tblInfo ON tblRoomNames.id = tblInfo.room_name_id;
    

    This will show something like “Peter”, “Narnia”, “Spare room” even though table one has “Peter”, “Narnia”, “1”.

    P.S. I use this all the time at work to populate dropdown boxes with options for the user to choose from. This way I can update multiple dropdown boxes just by editing one table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Access table with fields, in which there is some data and path
I have an access table which has some cells as blank ( no data
I have 2 computers each having a MS Access database, same set of tables
I have a data set (currently in Access 2007 format) which has 2 tables,
I have an Access database (in Access 2003) with several tables, and data must
I have a MS Access database with few tables and a form. When more
Say we have two tables in an MS Access db: Service Users: | ID
In one of the ms-access table I work with we have a text field
In an application we are developing, I have access to a database table which
I Have a table in Access as below SI Number Time 1.14172E+20 13:30:35 1244066650

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.