Professional Documents
Culture Documents
Access Part 3
Access Part 3
Set the proj_no as the primary key, to check if its already the primary key, at the left side of the field name try to look if
there’s a key icon. If it is present, then you are set to go.
Feel free to add more fields that you think your database need.
The proj_no should be the same as the proj_no as above, we will use this to link the tables together. The rev_no on the
second table should also be the primary key for this table.
Now, we will create a relationship between the tables. This means, 1 project can have several drawing revisions. We will
create a 1 is to many relationship.
To create the relationship, click DATABASE TOOLS, and click RELATIONSHIPS. It will open a show table dialog box. Select
both tables and click add.
Note: Please close all other tabs, the only tab that should be open is the relationships tab before creating the
relationship.
Click Create New. In the Left Table Name, click the drop down arrow and choose Project. In the Right Table Name,
choose Drawing. Select proj_no for both column names.
Click OK.
Check Enforce Referential Integrity, then click the other two check box.
Now you can enter your data. Next step, we will create a form that will combine the 2 tables. And consolidate your fields
Now we have our multiple tables, we will create a form that will be easier for us to enter and browse data. The easiest
way to do this is to close all tabs, except for the project tab. Placed it on datasheet view, click CREATE, then click FORM.
The Upper part of the form is the Project table, and the lower part of the form is the drawings table. Every time you
want to update or add a new drawing click NEW on the lower part.
If you want to add a new project, use these buttons on the lowest part of the form to navigate to the records.
NOTE: saw an error, please change rev_no datatype from autonumber to number. That will fix the default increment.