DataBase - What is the difference between table relationships and links?

Asked By Photoliv41
28-Jan-10 12:41 PM
I am new to Access & need to understand the differences between a link & a
relat  ionship to a table or database.  I am told the table must be created
before the database, but I need several tables for my data.  I need to ensure
I use the correct method to allow me to create a database using the various
connected tables.

Please help!
SQL Server
(1)
Oracle
(1)
Excel
(1)
VB
(1)
Database
(1)
Bontrager
(1)
Window
(1)
Infinity
(1)
  John Spencer replied to Photoliv41
28-Jan-10 12:55 PM
A link to a table is basically a connection path to a source of data that
exists somewhere other than the current Access application.  The data source
can be to a table in an MS SQL Server, Oracle, a text file, an Excel sheet, or
another Access application or other sources.

A relationship is how two tables (or other data sources) are related to each
other and can control whether or not data can be added to one table based on
whether or not corresponding data exists in a related table.  It also can
control whether or not you can delete records in one table based on whether or
not corresponding data exists in another table.

That is a VERY, VERY short overview of what relationships are.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
  Jerry Whittle replied to Photoliv41
28-Jan-10 01:28 PM
That's a very good question.

A table holds data. You can create tables within an Access database. Once
you create multiple tables in a database file, you can join them in the
Relationship Window and enforce Referential Integrity.

Consider this: You have two table - Customers and Orders. A customer can
have no, one, or many orders. This is known as a One to Many 1-M
relationship. 1-M ( of in Access 1-infinity symbol) is what you want to see
in a relational database.

Referential Integrity (RI) comes in to stop a serious error. Let's say that
someone enters in a new order and puts in Customer# 111. However there is not
a customer #111. Where do you send the order? Who do you bill?  RI would not
allow 111 to be put into the Orders table as it first checks that there is a
111 in the Customer table.

Now it is possible to link to a table. Say there is another database or even
Excel spreadsheet with the Customer data in it. No use having the customer
data in Shipping, Sales, and Finances databases. If Sales finds out that the
customer has moved, but does not inform Shipping and Finance, there can be a
problem. Therefore such data might be kept in one centralized database.

However there is a little downside to storing some data in different
databases. You can enable RI to linked tables. Therefore if it is really
important, you may need to write VB code in your forms to ensure that there
is a Customer# 111 before saving the record in your database.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
Create New Account
help
Might be outgrowing Access but daunted by SQL Server DataBase I am close to completing the consolidation of various small Access databases and a couple of Excel spreadsheets that my little company uses (5 staff) into an all encompasing Access database and I was planning on splitting the database when I was finished to allow simaltaneous use of it by staff on our small to me that I am going to need to give staff access to this new database from remote locations (outside of our office network). Two staff members are regularly overseas, one been playing around with trying to link tables from remote locations (ftp path of the database on our Network Storage Device at the office) and needless to say - that do not
SQL query slow DataBase Hi In the code below I found that it takes 1.3 seconds to load to split it up or cancel the query? And can I read this faster? string sql = EquipmentID(Equipment) + StartDate.ToOADate().ToString(FloatFormat, myCulture) + EndDate.ToOADate().ToString(FloatFormat, myCulture); sql + = " group by event_id, name"; _Log("Calc thread #2"); OleDbCommand com = new OleDbCommand(sql, con); _Log("Calc thread #3"); From #2 to #3 it takes 1.3 seconds. Remaing less that 0.1 second. So the query is what slows it down. Access Discussions SQL Server (1) Linson Unlike Albert D. Kallal (1) MySQL (1) Windows Server 2003 (1) Visual Studio (1) SharePoint (1) NHibernate (1) Microsoft SQL Server (1) Hi, Besides
Roger Jennings on Access / Sharepoint DataBase http: / / www.quepublishing.com / articles / article.aspx?p = 1606238 I was very dismayed reading this article, is it makes it pretty clear that in-house hosting of your Sharepoint server with Access Services to support browser-based Access apps is something only large companies will 2010 does not really save them money (because of the 64-bit requirements of Sharepoint Server 2010, it could vastly increase those costs for organizations with legacy hardware). The features of email hosted by someone else, so it is not a paradigmatic change. Having your flagship database applications hosted outside your local LAN seems to me to be a big leap, and http: / / www.dfenton.com / contact via website only http: / / www.dfenton.com / DFA / Access Discussions SQL Express (1) SQL Server (1) MySQL (1) Exchange Server (1) Windows Server (1) SharePoint (1) David W. Fenton (1) Access 2010 (1) Everything you
Access 2010 with Sharepoint 2010 DataBase I found this article http: / / sharepointproconnections.com / Articles / tabid / 149 / nodeid / 1996 / SharePoint-Wish-List platforms. Level 2 browsers will have some limitations in rendering and behavior." Bob Access Discussions SQL Server (1) MySQL (1) Visual Basic for Applications (1) SharePoint (1) Access 2007 (1) Access 2010 adopt what is called a develpment stack. that means you need to adopt a web server, a database server, and probably choose a particular browser scripting language on top of this. And, some type of scripting language to run on the web server side of things is also a big help. A pupular stack for example is lamp if you start developing in asp.net, then you will need a windows based web server to run "Internet services" (in place of the Apahce web server for example). If you
Access 2010 Data Macros: The Three-Legged Hunting Dog With One Bad Eye DataBase Wow, it is just amazing how difficult it is to do even the smallest of when I create a record using a data macro. Is that possible? Thanks! Access Discussions SQL Server 2008 (1) SQL Server (1) Visual Studio (1) SharePoint (1) Access 2010 (1) Oracle (1) Office (1) Error (1) Neil wrote, on 01st May 2012 18:35 UTC + 1 have to admit I read specially the beginning ;) ), I learned the asp.net platform, with SQL Server. Other solutions existed before, as compiling a program in VB6 to run the queries, and