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 / June 2006

Tip: Looking for answers? Try searching our database.

connecting tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
susan - 05 Jun 2006 15:55 GMT
how do I connect a data set in one table to another table that has an
information I need. for example how do I get the address of a client from one
table and attach it to another table that has the rest of the client's
details.
Signature

stay blessed

Ken Sheridan - 05 Jun 2006 19:05 GMT
The clients table should have a field which uniquely identifies each client,
such as a numeric ClientID, as its primary key field.  The other table should
also include a ClientID field as a foreign key.  In a one-to-one relationship
the ClientID would also be the primary key of the second table, though in
most cases relationships are one-to-many, e.g. if the second table were an
Orders table each client can have many orders.  The primary key of the
Clients table can be an autonumber field, but the foreign key in the second
table must be a straightforward long integer number data type, not an
autonumber.

To return data from both of  the two tables you use a query which joins them
on the ClientID fields.  What you should not do is repeat any data other than
the keys in both tables.  This is redundancy, which leaves the door open to
update anomalies.

Ken Sheridan
Stafford, England

> how do I connect a data set in one table to another table that has an
> information I need. for example how do I get the address of a client from one
> table and attach it to another table that has the rest of the client's
> details.
Bob Miller - 05 Jun 2006 21:28 GMT
You would need a field in common that is usually a client ID.  If you
don't have that and you have the client's names in both tables, you can
connect via the names as long as they are exactly the same in both
places.  You can't connect James Smith with J. Smith or Jim Smith.

susan Wrote:
> how do I connect a data set in one table to another table that has an
> information I need. for example how do I get the address of a client
[quoted text clipped - 3 lines]
> --
> stay blessed

Signature

Bob Miller

 
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.