Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2008

Tip: Looking for answers? Try searching our database.

Populate related table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andre Adams - 29 Apr 2008 14:42 GMT
I have two data input tables in which one need information from the other
before the user can complete a row entry.  Is there a way for me
automatically populate the specific column data into table1 from table2 upon
each in entry into table 2?

Andre Adams
Evi - 29 Apr 2008 17:09 GMT
Please translate:
' populate the specific column data into table1'
Evi
> I have two data input tables in which one need information from the other
> before the user can complete a row entry.  Is there a way for me
> automatically populate the specific column data into table1 from table2 upon
> each in entry into table 2?
>
> Andre Adams
Andre Adams - 29 Apr 2008 18:01 GMT
There are 3 columns that I want to automatically populate into table 2.  (1)
Date, (2) Amount and (3) Issuer.  Those 3 columns are also in table1 and will
be entered before any data is entered into table2.  Its actually a
prerequisite for the remaining data in table2.  

> Please translate:
> ' populate the specific column data into table1'
[quoted text clipped - 6 lines]
> >
> > Andre Adams
John W. Vinson - 29 Apr 2008 21:11 GMT
>There are 3 columns that I want to automatically populate into table 2.  (1)
>Date, (2) Amount and (3) Issuer.  Those 3 columns are also in table1 and will
>be entered before any data is entered into table2.  Its actually a
>prerequisite for the remaining data in table2.  

A fundamental principle of relational database design is that you should store
information only ONCE. Storing the date, amount and issuer redundantly in two
tables is almost surely neither necessary nor a good idea! Bear in mind that
the amount (say) could be edited in either Table1 or in Table2, so that the
"same" record has two different amounts. NOT good!

You're using a relational database. Use it relationally! Use a Query joining
the two tables to retrieve the information from Table1 to be used in
conjunction with information from Table2; it should not be necessary to copy
the data into the second table.

If you have a good reason for doing this... please explain.
Signature


            John W. Vinson [MVP]

Evi - 30 Apr 2008 01:17 GMT
Do you mean that you want to add the data in those columns to Table 2? If
yes, then look up Append Query in Help.

Evi

> There are 3 columns that I want to automatically populate into table 2.  (1)
> Date, (2) Amount and (3) Issuer.  Those 3 columns are also in table1 and will
[quoted text clipped - 11 lines]
> > >
> > > Andre Adams
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.