473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Autoupdate corresponding row data in other columns of Second table

5
I have 2 Table . Table1 is Excel imported date having field "Name" "School" "Roll No" . In table 2 having field "Sl.No" "Name" "School" "Roll No" "Other Information". I want that If in Table2 ,I select the Name from Lookup Column of table 2 Data the "School" , "Roll No" automatic get updated accordingly. Please help me
Dec 3 '12 #1
11 2850
NeoPa
32,556 Expert Mod 16PB
From what you say it seems like you need to run an update query on your two tables at a time appropriate to your situation. There is really very little helpful information in your question so it's hard to help much, but the fundamentals are there so get to it and let us know how you get on.

If you need more help then you'll need to provide us with a question that makes better sense.
Dec 3 '12 #2
bctra
5
I am trying to makeunderstand with an example. I am having a date table with column "First_Name" "Middle_name" and "Last_Name". I want to make another table where there will be column "First_name" , "Middle_Name" " Last_name" and some additional field. I will choose the New tables "First_name" column as a lookup wiziard and take the date from Table1 " First_name". What is the procedure that in the new table the "Middle_name" "Last_name" can take date from Table1 while choosing the first name from drop down
Dec 4 '12 #3
zmbd
5,501 Expert Mod 4TB
bctra:
I don't intend to sound mean in anyway; however, neither your first or second posts are very clear. However, from what I can gather you really need to visit the these two links:

Start with: A Tutorial for Access

Then from what you describe your database is in serious need of normalization: Database Normalization and Table Structures. as it is never a good idea to store the same information in two or more tables.
Dec 4 '12 #4
bctra
5
Please find below two images which may help you to understand



Dec 4 '12 #5
zmbd
5,501 Expert Mod 4TB
Neither image comes thru.

In general images from outside sites wouldn't be available to me or many of the other mods when using business computers as the I.T. Firewalls tend to be set to block them. Therefore, it is always preferable to try and provide the details within the post.

Nor do I accept emails for attached files... please no offense intended, this is simply "good computing practice."

I you will click on the advanced button, you will be taken to an editor where you can then attach the images to your post.
Dec 4 '12 #6
NeoPa
32,556 Expert Mod 16PB
Making better sense doesn't mean posting another explanation with no punctuation and sometimes without even spaces between words. That is just careless in any language. Nor does it mean simply posting unexplained pictures (even if the links posted actually worked, which I'm guessing you didn't check before submitting).

If you want assistance then please have the basic courtesy to explain your problem as clearly as you can in a properly formatted post. Nothing you have posted so far even matches the bare minimum of information required by the site rules and needed by those that would want to help you just to be able to understand well enough what you want. I'm sure you can appreciate that without knowing what you want it will be difficult to help you find a solution.
Dec 4 '12 #7
bctra
5
Dear Sir ,I am sorry for that:

Let me explain with an example:
I am having existing data table

(Say T1) having records in three fields First_Name , Middle_Name and Last_ Name. I want to create another table

(Say T2) where fields will be F_Name , M_Name ,L_Name , Address , PIN , Phone_no and Remarks.

What I want is , if in table T2 I use F_Name field as a lookup wizard linking to T1's First_Name , field M_Name and L_Name should take the data from T1's Middle_Name and Last_Name respectively.

Please help me.
Dec 5 '12 #8
zmbd
5,501 Expert Mod 4TB
It appears that you are trying to use a look-up field at the table level - yes?

Unless you are going to publish the database to Sharepoint or using the webcomponets I highly advise against doing so at the table level. Instead, do this at the query level or at the form level. Why? The Evils of Lookup Fields in Tables

One can make arguments for using them at the table level; however, when I discovered and starting using these at the table level I ran into a ton of issues trying to write my queries and so forth. Then I found the above link, and went back and removed these.

SO:
1) Confrim or correct that you are using table level lookups

2) Post your SQL you are using for your record source (formated using the <CODE/> button in the toolbar) We'll take a look at it and see what is going on. The SQL can still be used at the query level

3) Your database appears to not to follow the rules for normalization. Please see my post#4 and follow those two links.
Dec 5 '12 #9
NeoPa
32,556 Expert Mod 16PB
Now Z has reformatted your post it starts to make a little more sense (Thanks to Z for that). It is still missing a great deal but let's see if we can make a stab at guessing what you actually want and then give what advice we can in such circumstances.

Putting bits together from the various different posts (You left some of the important details out of your latest post so we have to switch between all the half-explained posts to have an idea of what you're talking about.), it seems that you need to update the data from one table from the temporary data in an imported table. As it's imported one assumes it is not always available so the data in the main table needs to be updated rather than simply running a query linking the two tables together.

As it happens, the answer that fits this question is already in post #2. That is what you need to do in very basic terms. Nothing more precise or helpful can be given at this stage as, for that, we'd need more information from you. That was all made clear in post #2 too.

So far there has been no further helpful information from you, but only the same information reposted in very poor format every time. We cannot help you if you don't provide a sensible question or any information that tells us what you need.
Dec 5 '12 #10
bctra
5
Please find the image , what I want in my database.

[IMG]

[/IMG]

http://postimage.org/image/sldv7n2fv/
Dec 8 '12 #11
NeoPa
32,556 Expert Mod 16PB
If I'm really still not getting my meaning through to you after all that, then I suspect it's time to give up. If you believe posting a single picture equates to an explanation of what you should be asking for, then you are going to struggle with much more in life than simply database work.

I'm happy to admit I was shocked to see what you'd posted - and I don't shock very easily.
Dec 8 '12 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Matik | last post by:
Hi, I have a small theoretical issue. I have one table, which is prettyu large. There is lot of evaluations running on this table, that's why, each process need to wait for another to be...
5
by: Mikael Syska | last post by:
Hi, I have 2 talbes in a DataSet, and made a DataRelation between the 2 tables in the DataSet. One of the Tables are displayed in a datagrid, and when one of them is selected in the datagrid...
5
by: Mark Cave-Ayland | last post by:
Hi everyone, I'm trying to calculate an output column which is the difference of two other columns in the query output; the first column is an aggregate of items in stock, while the second...
11
by: Kay | last post by:
Hi all, I have populated a dataset with several tables, say - Roster, Agent and few more . The dataset is used to populated a listview with some shift info.. I think I'm sucessfully created a...
4
by: TB | last post by:
Hi All: As a newbie to ASP.NET, I think I have understood a dataset as a kind of container where I can store several datatables to used during the lifetime of a page. With that in mind I written...
1
by: ljungers | last post by:
I have a Report that uses a master table and has been working ok. Now I need to add some data from a second table called locations. The master table has a column named loc_code, and the locations...
2
by: shankar2 | last post by:
Hello All, This is my first try at posting a query in this forum, your patience is appreciated. App Details: Access 2000 on Win 2000, Slightly better than a Novice, comfortable with various...
1
by: binky | last post by:
Good afternoon folks, a quick question for all you SQL gurus out there. I'm cleaning up a table from another person at my company and am running into a small problem. Assume: Table: T1...
2
by: Ronald | last post by:
I hope somebody can help. I can't get into the specifics of my project, but I'll try to create a simple example: tblVehicle * VIN (text box) * Make (text box) * Model (text box) frmRepair
5
by: dos360 | last post by:
Hello, I have two tables, one is a list of activities, the other a list of participants. I want to insert one record in the activities table and then using its identity column as foreign key, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.