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 7308123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:30:51+00:00 2026-05-28T23:30:51+00:00

I currently have a one to one relationship between two tables in MS Access

  • 0

I currently have a one to one relationship between two tables in MS Access like so:

Student Results

  • StudentResultsID (primary key, autonumber)
  • Various fields relating to the course.

AVETMISS Data

  • StudentResultsID (primary key, long integer)
  • Various fields relating to a specific, paper form that must be filled out by the student for each enrolment.

When the user adds a new record to Student Results (this occurs everytime a student is enrolled into a course) I want to create a matching record in AVETMISS Data. I thought this was a function of creating the relationship and enforcing referential integrity, however even with this option turned on I keep getting inconsistencies.

If there is a way to make this happen in the setup of the tables (or queries) and the relationship that would be my preferred solution.

If this is not possible, one solution that I think would work, but is much less ideal, is to rig the form for AVETMISS Data to run some code or macro when it is opened.

Something like this in the On Load property:

Does this StudentResultsID exist in AVETMISS Data?

Yes - Do nothing

No - Create new record with this StudentResultsID

EDIT: It’s occured to me that the ‘After Insert’ property in the Student Results form may be a better candidate for this kind of solution.

If I must resort to this solution I would really appreciate some guidance in this as I know next to nothing about Visual Basic and don’t want to learn it for a 3-line snippet of code.

Please note – During my research I found a lot of people questioning the reasoning behind using a one to one relationship. I have read the arguments against using these relationships and I am certain that it is completely necessary for my situation.

  • 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-28T23:30:52+00:00Added an answer on May 28, 2026 at 11:30 pm

    Based on your description, I think you may be able to solve this with no code.

    Create a form based on Student Results and a second form based on AVETMISS Data. Then add that second form to a subform control on the first form. Set the link master/child property to StudentResultsID.

    When in form view, the subform should display the AVETMISS Data row whose StudentResultsID matches the current row displayed in the parent form.

    If no subform match exists for the current parent form StudentResultsID, you can add one by typing a value into any other the available subform bound data controls (other than StudentResultsID). When saved, that new record will have the same StudentResultsID as the parent form current row.

    The link master/child property ensures the child link field (StudentResultsID) “inherits” the master field value.

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

Sidebar

Related Questions

I have two tables: invoices & invoice_items. I need a one to many relationship
I have an identifying relationship between two tables in the database. The parent table
I have two tables with a many-to-one relationship. (Oracle) **Table: PARENT** Field: A (PK)
I currently have a user's table which contains a one-to-one relationship for Youtube OAuth
I (currently) have two forms, one that needs to call the other. In other
Currently I have two MediaWikis, one a slightly older version than the other. I
Currently I have two tables in my database Encounters and Referrals : There is
I currently have a source file with two classes in it. I'd like to
I have two tables, we'll call them Foo and Bar , with a one
I have a many-to-many relationship between two models, Lists and Users. When a user

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.