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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:22:52+00:00 2026-05-17T00:22:52+00:00

Ok I have a question and it is probably very easy but I can

  • 0

Ok I have a question and it is probably very easy but I can not find the solution.

I have 3 tables plus one main tbl.

tbl_1 - tbl_1Name_id 
tbl_2- tbl_2Name_id 
tbl_3 - tbl_3Name_id

I want to connect the Name_id fields to the main tbl fields below.

main_tbl 
___________ 
tbl_1Name_id 
tbl_2Name_id 
tbl_3Name_id

Main tbl has a Unique Key for these fields and in the other table, fields they are normal fields NOT NULL.

What I would like to do is that any time when the record is entered in tbl_1, tbl_2 or tbl_3, the value from the main table shows in that field, or other way.
Also I have the relationship Many to one, one being the main tbl of course.

I have a feeling this should be very simple but can not get it to work.

  • 1 1 Answer
  • 1 View
  • 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-17T00:22:52+00:00Added an answer on May 17, 2026 at 12:22 am

    Here is a sample trigger that may show you waht you need to have:

    Create trigger mytabletrigger ON mytable
    For INSERT 
    AS
    
    INSERT MYOTHERTABLE (MytableId, insertdate)
    select mytableid, getdate() from inserted
    

    In a trigger you have two psuedotables available, inserted and deleted. The inserted table constains the data that is being inserted into the table you have the trigger on including any autogenerated id. That is how you get the data to the other table assuming you don’t need other data at the same time. YOu can get other data from system stored procuders or joins to other tables but not from a form in the application.

    If you do need other data that isn’t available in a trigger (such as other values from a form, then you need to write a sttored procedure to insert to one table and return the id value through an output clause or using scope_identity() and then use that data to build the insert for the next table.

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

Sidebar

Related Questions

I have what is probably a really simple, studid question but I can't find
I have a question that is probably very simple, but I cannot find an
Not a front-end UI but have a (probably) very easy problem to fix and
This question is probably very easy for most of you, but i cant find
I realize this question has probably been asked numerous times, but I have not
This is probably a simple question, but i have been unable to find a
Probably a very basic question - I have 2 tables #favorites and #leaders ,
This is probably a very stupid question, but I am just not sure which
Ok so this is probably a very beginner question but... Right now I have
I'm afraid this is probably a very embarrassingly easy question - but my mind

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.