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

  • SEARCH
  • Home
  • 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 3985350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:52:48+00:00 2026-05-20T05:52:48+00:00

I have an Access database where I want to store the contacts in a

  • 0

I have an Access database where I want to store the contacts in a company:
In this database I have a table named “users” where I keep the users
which will have access to the database. In the main table, named “contacts”,
two of my fields “insert_user” and “contact_user” refer to the user
who entered the contact information and the user who actually made the contact.
The way I am thinking it, I will have to set both of the fields as foreign keys
to the same table/field, namely “users”/”username”.

So:
I set two foreign key constrains in two different fields (“insert_user”, “contact_user”), which refer to the same table/field (“users”/”username”) in an
Access database, using VB.Net OleDB
(See the SQL Statement below)

ALTER TABLE contacts ADD CONSTRAINT insert_user_foreignkey FOREIGN KEY (insert_user) REFERENCES users (username)
ALTER TABLE contacts ADD CONSTRAINT contact_user_foreignkey FOREIGN KEY (contact_user) REFERENCES users (username)

I open the database with MS-Access.
I see that all the tables are fine (as they should be).

However when I click on relationships at Access I get all my tables plus a table named users_1 connected to “contacts”/”contact_user” (the table users is only connected to “contacts”/”insert_user”)

It is very strange that in the Table View of Access I don’t see this table, but only in the Relationships View.

Questions

  • Is my thinking right (to set 2 foreign keys, that refer to the same table/field)?
  • What is this table “users_1”?
  • Will my database work or am I doing something wrong?
  • 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-20T05:52:49+00:00Added an answer on May 20, 2026 at 5:52 am

    This is the way that Access sets up relationships when a table is used more than once. If you added another relationship, it would be for users_2 and so on. This is only an alias, not a new table.

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

Sidebar

Related Questions

I have this old Access database (2000 format) which i want to convert to
I'm using Linq to SQL to access my database. I want to have a
I have a ms access database that has one table for each photo album
I have an access database with these tables: - sequences: it describes the sequences
I have an Access database (in Access 2003) with several tables, and data must
I have an Access database of 4M rows, each representing an individual customer order.
I have a Microsoft Access Database with an interface for usability ... But now,
I have an Access 2007 database and when I open it I can copy
I have an Access 2007 database that works asynchronously with a MAS200 database. Due
I have a Microsoft Access database and there is a macro there. How do

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.