john
just to clarify.
your database includes a set of tables. These should have been designed in a relational manner, normalised, so that there are no data redundancies. Doing so helps you work with the database better, makes development more harmonious, and prevents errors caused when the same data is stored in more than place -but differently in different places. So given a set of tables, let's discuss what relations are.[/COLOR] - the 'author' was ict subject leader and was under pressure to develop an all singing un-clearly defined database and he had a reasonable knowledge of sql
When you create a query you can include more than one table. Generally (not always, but assume always for these purposes) you need to explain to access how thos tables are related. so that a particular field in one table corresponds to a field in a different table (maybe the same name, but not necessarily)
by doing it this way, you are able to show information from both tables in a single query. (and therefore in a single form)agreed
as you will nknow, you can draw a line from a field in one table to a field in another, to establish the join. if two fields have the same name, access may include the join automatically. sometimes thisi s incorrect. you may have a field called ID in both tables, but they are not supposed to match, and you have to delete the jon access automatically creates. ok thx
Now these joins between tables can be preconfigured in the relationships window. they do not have to be - they just can. If a permanent relationship is established, then access will automatically include the link when you put both tables in a query which can save you time. You can always create the joins manually, though.simpler if it's designed this way so future developers can understand
The final step is that the relationship can be set as having RI. relational integrity. This takes it a step further, and says that you cannot have a linked record, if you do not have a main record.this is the way i am going to change the dbase
so if you have a table for customers and orders, RI means that you cannot enter an order for a non-existent customer. (which is unlikely to happen) but also prevents you inadvertently deleting a customer, if orders exist.
Relationships are useful, but are nothing to do with database design. The tables should be designed correctly in a normalised manner irrespective of whether you set relationships and RI. tables are not normalised - i think I am going to do this to 3nf
hope you find this helpful Definately thx