473,385 Members | 1,890 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,385 software developers and data experts.

Populating fields in one table with data from another table

Hello, I'm new to access and I realise that this may be an incredibly basic question, but...

I am trying to populate fields of one table from another table.

I have a number of hand written forms to digitise by putting them onto a database.

We have a register lists and a detailed information sheet for each item listed.
Some info from the register lists is duplicated on the info sheet. So what seems the obvious thing to do is have the duplicate items self populate.

the tables go like this:
REGISTER
project number
project name
context number (always a unique ID)
brief description
number taken out by

INFO SHEET
project number
project name
context number (unique ID)
type
full description
photo number
sheet filled out by
etc.

PHOTO REGISTER
project number
project name
photo number (unique ID)
context number (can be several in one photo)
description
photo taken by
etc.

Once the registers are entered into their tables I want all matching data for one context number to be duplicated on the info sheet table so the data entrant can cross reference it and spot any errors on the hard copy.

I have simple forms for each of the different bits of paper (register, info sheet, photo register) to make digitising easier and avoid people touching my precious tables. But I'm having trouble actually getting these different tables to auto fill each other. (though I would also like any relevant information already entered into any table to appear on the info sheet form when entering data, but I think this might happen automatically)

It's a bit of an oddball use as its not the typical sales/stock/customer database. perhaps I'm not getting the answer I want because I cant quite relate these commonly used examples to my own use.

I'd appreciate any help anyone might be able to offer and apologise for asking what is probably a very very basic question.

Thanks!
Mar 8 '19 #1
4 3471
twinnyfo
3,653 Expert Mod 2GB
Karol’s,

Welcome to Bytes!

Your description is a bit confusing. But it seems to me that if you have all this data that simply pertains to each item, then why not put all that data into one table? The only secondary table I see a need for is the Photo Register Context number, as there can be multiples for each item.

Don’t worry about people touching your tables—if you build your DB properly, they will never see them—nor will they ever have a need to know what they are.

We might need more information on this, though, as your description is a bit scant.

Standing by to provide more hepp if you need it.
Mar 8 '19 #2
Thanks for the speedy reply.

Sorry for the confusing explanation, I'll try and simplify it.

There are two main purposes to our database, one is to preserve an electronic copy of hard documents as they are in real life, and the second is to manipulate/interrogate the data.

At this point we cant combine the data into one table because we need a digital version of each piece of paper we have for archiving purposes.

We have three pieces of paper to put into our database, currently they are all entered directly into their own tables:

The item register listing all contexts (used in hard copy as an index for the info sheets)

Then we have the info sheet which shares some details from the register as well as going into far more detail about a context.

Then the photo register lists all the photos and what they are of.

This leaves me with 3 tables, some of which have the same information in them. (context number for example) All three are entered at different times by different people (it would not be practical to enter all the information for one context at once.)

So once I've entered the project code and name for one context into the register table, I would like it to appear in the relevant field in the other tables (simply to reduce data entry time).

Or would it be better/possible to produce a set of forms for staff to fill in for each of the pieces of paper that would put the relevant information into the relevant tables?

I'd like to keep the tables separate as when everything is combined it makes it difficult to work with (I've only mentioned three different tables for brevity but in reality there are far more)


I hope that makes a bit more sense but I fear it wont.
Mar 8 '19 #3
twinnyfo
3,653 Expert Mod 2GB
Karlos:
At this point we cant combine the data into one table because we need a digital version of each piece of paper we have for archiving purposes.
This has nothing to do with maintain all data pertaining to one record in one table.

Karlos:
This leaves me with 3 tables, some of which have the same information in them. (context number for example) All three are entered at different times by different people (it would not be practical to enter all the information for one context at once.)
I get the impression that you are hesitant to combine these tables into one because multiple people work on them?

Karlos:
I'd like to keep the tables separate as when everything is combined it makes it difficult to work with (I've only mentioned three different tables for brevity but in reality there are far more)
In my experience, more tables make it more difficult to manage. I am all for having many tables, when there is a need for many tables. However, I still am confused about your table structure.

If you have one table with the majority of the data (and you may still need two more tables) then the people that work on one part of the data can update the fields they need to update and those who update other data update other fields. The photos table should simple list the photos and the context table, just the contexts. This is all based on a limited knowledge of your DB and its structure and the exact data you are entering.

Keep in mind, that even though you are “describing” your DB, you are using the jargon that is familiar to your community and its uses. We have n idea what a “context” is within this context—pun intended.

I think we still need more information before we can structure your tables properly.
Mar 9 '19 #4
Rabbit
12,516 Expert Mod 8TB
Information from a higher level should not be repeated at a lower level. For example, your register/project level information such as project name and context number should not be repeated in all lower level tables. They can be displayed by joining to the higher level table. But there's no need to repeatedly store and enter it multiple times.

The lower level tables should only contain the unique identifier from the higher level table. In this case, most likely the project id.
Mar 11 '19 #5

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

Similar topics

9
by: Deja User | last post by:
This is probably very simple but I can't figure out a way to update one table from another table. Here is an example: ------ TABLEA ------ first_name last_name
3
by: EJH | last post by:
I have a Database that has three tables. One of the three is just a table that contains three fields and is filled with reference information. One field is 3-Digit(primary key), the next is...
1
by: lcourchesne | last post by:
Hi there, This is what I am trying to do: Create a query that will insert a column from Table 2 into Table 1. These two tables are exactly the same in structure, however, there is no unique...
1
by: Sakakini | last post by:
How can I append last entry from one table to another table???
4
by: slavisa | last post by:
Im having trouble with updating my 1 table with the information from another! I have a table with 6 fields. Code(pk), Name, Title, Address, State, city, zip the table is called Info. Now...
1
by: delusion7 | last post by:
Hi.. I have 2 tables: country and ticket country table contains countryId and countries ticket table contains many fields, and a country field the country table is new and consists of all...
3
by: shubham rastogi | last post by:
hello guys I want to copy or insert records into the previously created table from another table.. For example I have two tables A and B .... I want to copy or insert records from table B into...
2
by: amitsukte | last post by:
Hi Everyone how should i update multiple columns of a table from another table... Suppose I have table A and B and having four columns each table A(col1,col2,col3,col4) B(col1,col2,col3,col4) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.