Contents
Contents ............................................................................... 2
Happy Computers Telephone Help-Line .......................... 4
Relational database design ................................................ 5
Relational databases ..................................................................................................... 5
Linking tables and keys ................................................................................................. 8
What do relationships look like in Access terms? .......................................................... 9
What do you need to create a relationship? ................................................................ 10
Creating a relationship ................................................................................................. 11
What might go wrong when setting up a relationship? ................................................ 14
Amending relationships between tables ...................................................................... 17
Choosing what to display in the relationship window................................................... 19
Printing out your relationships ..................................................................................... 21
Queries based on more than one table ....................................................................... 22
Macros ................................................................................ 94
Creating macros .......................................................................................................... 94
What does a macro window look like?......................................................................... 95
Planning which macros you need ................................................................................ 96
Creating macros .......................................................................................................... 96
Page 2
Page 3
Access, VBA and web courses: please note: we will do what we can to help but we
cannot carryout debugging or redesign work.
This is a category C course
Category A
Category B
Category C
Category D
Category E
Category F
If your question goes beyond the level of the course you attended it is up to the
discretion of the Helpline person whether they answer it. We will always try to point you
to another source of help if this is the case.
Page 4
In fact, very few databases (if they are designed correctly) hold all their information in
just one table!
This design is reasonable as long as each staff member only goes on one training
course,
However, what happens when a staff member needs further training, see Debbie
Anderson
You could repeat the Training fields, and this certainly seems to work for Debbie:
However, where will you search for attendance of an Access Essentials course? It
could be in any of the Training field columns!
Page 5
to
MANY
This design allows you to hold many days training against each one member of staff
and many members of staff against each one training course:
ONE training course can
This is called a Many to Many relationship.
have MANY members of
ONE member of staff can go on
MANY training days:
Page 6
staff on it:
1
1
to
MANY
MANY
to
Page 7
Page 8
The Foreign
key
The Primary
key (has a
small key next
to it)
The two
Foreign Keys
The Primary
Key
The Primary
Key
Page 9
Text
Text
Autonumber
Number
Page 10
Creating a relationship
Do I need to do anything different if I want to create a Many to Many
relationship?
No. A Many to Many relationship is actually made up of two One to
Many relationships with the same table (the linking table) in the middle:
Page 11
The
Primary key
The
Foreign key
Page 12
MANY
1
to
Page 13
3. Click Yes
Do I need to save?
It is your choice
You are being prompted to save the LAYOUT of the relationships
window, not the actual relationship the relationship between two tables
is saved as soon as you create it.
Whoops!
This
indicates
that you are
trying to link
two primary
keys
In a One to Many relationship, only one field should be a primary key whilst the other
one should be a foreign key.
You need to correct this in the following way
1. Close down the Relationships
window
2. Click on
- if prompted to
Save the Layout changes
3. Open the MANY side table in
Page 14
For example,
Whoops! This
should really look
like this
Page 15
Text
Text
Autonumber
Number
Page 16
3. Click OK
Deleting a relationship
If you want to permanently delete the relationship between two tables
1. Right-click on the line between the
two tables
Page 17
2. Choose Delete
3. Click Yes
Page 18
2. Press Delete
3. Close the Relationship window
Message appears
4. Click Yes
Page 19
Page 20
4.
5.
6.
7.
Click OK
Close the Report window
Click Yes
Type in a name that clearly
describes the report
8. Click OK
Page 21
4. Click Close
5. Double-click on the fields to include in
the query
7. If you want to add more fields, click on the View button to return to
Design view
8. Make your changes
9. Click on the Run button again
10. Click Ctrl + S
11. Type a name that clearly describes
the query
Page 22
It is also good practice not to leave spaces and to capitalise the first
letter of each word.
12. Click OK
Closing a query
Click on the cross in the top right
corner of the screen
Page 23
QUERY
TABLE
FORM
REPORT
Page 24
You will need to create a special form to bring together the three tables that are linked,
this will help you enter your information in a more user friendly way.
This form is called a Main and Sub form.
Both these forms are made up of a Main form and a Sub form, in each example:
Page 25
Why do I need to create a query before I can create the sub form?
The only way that you can create a sub form for a many to many
relationship is to create a query, which combines the compound primary
key (the fields in the linking table) with the other information you want
visible on the sub form!
Lets consider our example of a many to many relationship:
The Main
form is
based on
the table
called
tblEmployee
this
represents
the ONE
Page 26
6. Click Next
7. Choose a Layout for the main form
8. Click Next
9. Choose a Style for your Form
Page 27
Page 28
For example:
mainfrmEmployee&TrainingCourseInfo
A form is created
In our example
we want the
linking table and
one of the tables
at the Many end
of the
relationship
4. Click Close
This is the
Linking table
Page 29
6. Click on Run
7. Click Ctrl + S
8. Type a name that clearly describes
the query
9. Click OK
10. Close the query
For example,
qryTrainingCourseInfoForSubForm
Page 30
Page 31
Page 32
What does a main and sub form look like in design view?
This is how your Sub form might look in Design view:
Click Ctrl + S
Page 33
5. Click Ctrl + S
Page 34
Page 35
However, you can change it so that you see just one record at a time:
Page 36
Repeated
field
4. Change Visible to No
Page 37
7. Click Ctrl + S
Page 38
3.
4.
5.
6.
Page 39
Record
navigation
buttons for the
Main form
Record
navigation
buttons for the
Sub form
Page 40
This field
adds up all
of the prices
in the sub
form
Page 41
Page 42
Format your Total so that it stands out from the other data
Select the Control and Label and click on the Properties button
Click on the Format tab
Make changes as appropriate
Page 43
Fields
Sub Forms
Combo Boxes
Command Buttons, etc
This
Command
Button
allows me to
open
another form
and view the
salary
information
of only the
record I am
viewing
Page 44
This Command
Button allows me to
print only the record I
am viewing
A list of pre-defined entries to choose from, when typing information into a form:
For example, to ensure that only valid entries are actually keyed into a
department field, you would create a combo box that holds the correct entries
to choose from.
Page 45
How many ways are there to create a combo box in your form?
There are two ways to create a combo box:
Creating a combo box based on another table and then using the wizard to link
everything
Creating a combo box solely using the wizard
Page 46
5. Click Ctrl + S
6. Type a name that clearly describes the
table
7. Click OK
8. Click No
9. Click on the View button
For example,
tblLookupDepartment
Access will let you know there is
Primary key for this table and that
you can create one now. A lookup
table doesnt need a Primary key
Will take you to Design view
Page 47
For example,
mainfrmEmployee&TrainingCourseInfo
9. Click on
10. Choose the Table to base your Combo
Box on
11. Click on
12. Double click on the available field to
Page 48
13. Click on
14. You can now choose the sort order for
the Combo Box
(if required)
15. Click on
16. To increase the column width of the
Combo Box place mouse pointer on
the edge and double click
17. Click on
18. Choose Store that value in this field
and select the correct field
19. Click on
20. Type an appropriate Label for your
combo box
Page 49
21. Click on
A Combo box will be created for you at this point you are seeing it in Design View
To make it fit neatly into the layout move it slightly with its move handle until it snap fits:
You have made a mistake, and your Combo box will not work properly!
See the page on What can go wrong when creating a Combo Box.
22. Click on the Save button
2. Click on the
information
you want to
enter
Page 50
Question:
Will Access let you key in information then, that isnt in the list?
Answer:
Yes!
The solution:
If you want to ensure absolute consistency when inputting information into a combo box,
then you need to amend one of the fields property settings:
Page 51
6. Ctrl + S to save
Page 52
Here we can
choose a
Course by
its Type
Delete the field you are going to replace with a Combo Box
Create the Combo Box on your form
Step 1 Delete the field you are going to replace with a combo box
1. In Design view of the form
2. Click on the field you are going to replace
with a Combo Box to select it
3. Press DELETE
Page 53
4. Click on
5. Choose the Table to base your Combo
Box on
6. Click on
7. Double click on the fields you want to
see in the Combo Box to select them
8. Click on
9. You can now choose the sort order for
the Combo Box
(if required)
10. Click on
11. Click the Hide Key Column OFF
12. To increase the column width of the
Combo Box place mouse pointer on
Page 54
13. Click on
14. Select the field that uniquely identifies
each record in your table
16. Click on
17. Type an appropriate Label for your
combo box
18. Click on
A Combo box will be created for you at this point you are seeing it in Design View
To make it fit neatly into the layout move it slightly with its move handle until it snap fits:
Page 55
Click on
the
downward
arrow to
display
the list
Page 56
7. Click on View
Before amending column widths:
Page 57
Page 58
Page 59
But the
drawback here
is you have to
know what you
are looking for
and type it in!
Wouldnt it be easier if you could just choose the record you want to view from a list?
Page 60
4. Click on
5. Double-click on the fields which will help you
identify your records
Page 61
6. Click on
7. To increase or decrease the column widths of the
Combo Box,
place your mouse pointer at the edge of the
headings in turn and Double-click)
8. Click on
9. Type an appropriate label for your combo box
10. Click on
11. Ctrl + S to save
The text in
the Label is
not fully
visible
Page 62
3. Ctrl + S
2. Click and Drag on the large
black square to move the
Control
What if I dont want to see the persons name once I have chosen to
find them?
For example, instead of seeing this information once you have chosen to find
Becky:
You could instead choose this layout whereby only the arrow is visible:
To do this:
In Design View of the form, resize the Control so that only the arrow is
visible!
In Form view:
2. Click on the
record you want
to find
Page 63
Page 64
Page 65
Making your Combo Box update when you move between records
You may find that if you use your Record Navigation buttons to move between records
that your Combo Box will not match the record you are looking at e.g.
In order to get the Combo Box to update we need to use some VBA code.
1. In the design view of the form click on the control
to select it
Page 66
next to the On
10. Ctrl + S to
11. Close the VBA window
Page 67
Command buttons
Why create command buttons?
Command buttons allow you to automate your forms.
You can attach actions to the buttons and tell Access what you want to happen after the
button has been clicked.
For example:
Page 68
Command button
displaying text
Command button
displaying a picture
Page 69
Form Operations:
Application:
Page 70
Record Operations:
Report Operations:
Miscellaneous:
We have
selected
the Record
Operations
category
and, the
Print
Record
action
5. Click on
7. Click on
8. Type an appropriate name for your button
will not be displayed)
(this
Page 71
9. Click on
10. A Command Button will be created for you at this
point you will see it in Design View
Page 72
One Click
on this
button,
and the
salary
info for
this
employee
is
displayed
here!
Page 73
Creating a command button to view the same record between two forms
1. In Design view of the form ensure the Use Control Wizards button in
the controls group is selected
3. Click on your form (where you want the Command Button to appear)
4. Select the Form Operations Category and
the Open Form Action
5. Click on
6. Select the Form you want to open
(which Form do you want to open when you Click on your button)
Page 74
7. Click on
8. Make sure the first choice is selected
9. Click on
10. Click on the Linking fields in each form, Click on the
button
(the two fields are usually the Primary Key fields in each Form)
11. Click on
12. Click on the Text choice, and amend the text
13. Click on
14. Type an appropriate name for your button
Page 75
15. Click on
16. Ctrl + S to save
17. Now try out your button in Form View
When you
Click on the
Command
Button, the
Form with
just that
persons
information
in it, opens
up!
Sandys
information
is displayed
in both
Forms, at the
Click of a
button!
What if my Main form is maximised, but I dont want the form that
opens off it to be maximised?
To prevent this happening, you need to amend one of the form property
settings on the second form:
Page 76
If you want to ensure that a secondary form opening off a first form is viewed as below,
then you need to amend one of the form property settings:
The second
form opens
and is
viewed
without
covering
the
information
in the first
form!
Page 77
Page 78
Page 79
5. Ctrl + S to save
Go to Form view and try it out!
Page 80
Tab Controls
Tab controls
What is a tab control?
If you are working with a long form, it is easier for the person viewing or typing
information in, if you break the form down into smaller pages:
Click on one
of these to
view, amend
or add more
information
about this
employee!
You can separate information into different categories and place it on different
pages
You can view lots of information in one form by moving between the pages
You can add and amend information in any of the pages
How many ways are there to add information into tab controls?
There are two main ways to add fields (your information) into tab controls:
Create a blank form and add the fields individually (see next page)
Create a long form with all your fields in it and then cut and paste them in groups
(see page Error! Bookmark not defined.)
Page 81
2. Click on
3. Choose Design view
4. The field list pane should open on the right hand side (if it doesnt
click
5. Drag the fields you require from the Field List pane (on the right) onto the
Form
Page 82
Page 83
Step 2 - Insert a Tab Control then add the fields you want
1. Drag onto the Form all the fields you need on the form itself (ie not on Tabs)
2. Drag down the edge of your form to make room for the Tab Control if
necessary
When you
get this
shape, drag
down
4. Click on your form where you would like your Tab Control to go
Page 84
5. Click and drag fields onto the Tab control (you can select several at once
from the Field List pane by holding the Control key down as you click)
Page 85
7. Select the fields that you want to go on the second page of your Tab Control
and click and drag them.
8. Close the Field List Pane
9. Ctrl + S to Save
Page 86
Now you can drag on to it more fields and add new pages, as necessary!
4. Ctrl + S to Save
Page 87
Doubleclick here!
Repeat steps 2 and 3 until all your pages have been renamed:
Page 88
Moving pages
Moving pages around in your tab control
Now you have created all the pages in your tab control, you may want to move them
into a more appropriate order. It is really easy to move pages
6. Click on
7. Ctrl + S to Save
Page 89
3. Then Click and Drag on the border area of the selection to Move your tab
control an appropriate position on your form
What should my mouse look like?
Your mouse will look like a four headed arrow when you are moving the
selection correctly!
Page 90
4. Ctrl + S to Save
Make the tab controls transparent, so that you can see the format of the form,
rather than a grey box
Turn the tabs at the top of the control into buttons
Change the font name and size etc of the tabs
Allow more than one row of tabs (this is particularly useful if you have created
lots of pages!)
Page 91
Page 92
Page 93
Macros
Creating macros
What is a macro?
A macro is a set of one or more actions that each perform a particular task.
For example:
Automatically maximising a form when you open it
Automatically opening a form used for data entry, at a new record
Printing a report at the click of a button
Finding and filtering records to speed up your work
Exiting your database and Access at the click of a button
Page 94
A macro group is a series of macros that appears together in the same Macro
window
A group macro containing seven macros, each with only one action
Page 95
Creating macros
Once you have planned which macros you need, you are ready to create them!
Page 96
7. Click on OK
What should I call my macro?
When saving a macro it is good practice to identify it as a macro in the
name.
For example:
It is also good practice not to leave spaces and to capitalise the first
letter of each word.
Page 97
3. Type a name for your first macro dont leave spaces and capitalise the first
letter of each word
4. Choose an Action from the list
Page 98
(if required)
Repeat Steps 4 to 6 until you have added all the macro Actions you need for this macro.
Repeat Steps 4 to 7 until you have added each individual Macro with the Actions that
you need
7. Ctrl + S to save
8. Type a name that clearly describes the Macro
9. Click on OK
What should I call my macro?
When saving a macro group it is good practice to identify it as a macro
group in the name.
For example:
It is also good practice not to leave spaces and to capitalise the first
letter of each word.
You can now attach your Macro to a command button or form!
Page 99
Turn this
OFF!
(you might need to resize the Property Sheet pane to display the Macro
names in full)
Page 100
8. Choose the Macro you want to attach to your button from the list
9. Find the Caption property under the Format tab and type an appropriate
caption:
Page 101
(you might need to resize the Properties window to display the Macro names
in full)
6. Choose the Macro you want to attach to your form from the list
Page 102
No. If you want to be able to use this macro to Close many forms, then
you dont need to change the Action Argument to close something
specific!
4. Ctrl + S to Save
5. Type a name that clearly describes the Macro
What should I call my macro?
When saving a macro it is good practice to identify it as a macro in the
name.
It is also good practice not to leave spaces and to capitalise the first
letter of each word.
Page 103
6. Click on OK
7. Close your macro
You can now attach your Macro to a command button!
1. In Design view of the form
2. Click the Use Control Wizards button in the Controls group to OFF
Turn this
OFF!
Page 104
9. On the format tab of the Property Sheet pane, find the Caption property.
Type an appropriate caption for your button
(this is the text that will be displayed on your button
7. (You will probably need to move the button to an appropriate position on the
form)
8. Ctrl + S to Save
9. Go to Form View and click on your button to try it out!
Page 105
Page 106
Page 107
16. Click on OK
17. Close your macro
You can now attach your Macros to command buttons!
1. In Design view of the form
2. Click the Use Control Wizards button in the Controls group to OFF
Turn this
OFF!
Repeat steps 3 and 4 until you have all the Buttons that you need:
Page 108
8. (you may need to resize the Property Sheet Pane to display the Macro
names in full)
10. On the format tab of the Property Sheet pane, find the Caption property.
Type an appropriate caption for your button
(this is the text that will be displayed on your button
Page 109
11. Select your next button and repeat Steps 6 to 10 and so on for all your
buttons
12. Close the Property Sheet pane
13. Ctrl + S to save
Dont worry
about aligning
and resizing
them; we can
sort that out!
Click here,
and drag
over the
rest of the
buttons
2. Click on
3. Click on
Page 110
Double Click
on a Size
handle to
resize all the
buttons in one
go!
5. Ctrl + S to Save
6. Click on the View button
Creating a macro to maximize a form upon open, and start at a new record
Why not do this the easy way!
For an even easier way to make a form start at a new record see Page
79 on Changing the Data Entry options.
However, that method will not let you see any of your existing records in
the form. To see the existing records as well, follow the instructions
below.
Page 111
7. Ctrl + S to Save
9. Click on OK
10. Close your macro
Page 112
15. Click on the downward arrow to select the Macro you want
(you might need to resize the Properties window to display the Macro names
in full)
16. Choose the Macro you want to attach to your form from the list
Page 113
Page 114
Type your
new field
name here
Step 2 Add the new field to your form and create the macro
1. Open the Form in Design view
2. Click on
For example:
Page 115
10. Click on
11. Choose the GoToControl Action from the list
For example:
13. Click
For example:
Page 116
Or:
Page 117
Page 118
Page 119
Wouldnt it be great if I could type my date criteria into a form, rather than into design
view of a query, and then run a report based on that criteria!
By combining
controls like text
boxes and
command buttons
with objects like
reports, this is
possible!
Page 120
from the
Page 121
6. Click on
7. Choose the Table to base your Combo Box on
Which table do I want?
If we assume that you have already created lookup tables for all the key
criteria you would want to select on in a query, then choose the
appropriate lookup table here!
In our example, the table we want is tblLookupDepartment because it
holds a list of all our Departments!
8. Click on
9. Double-click on the Available Field, to Select the field
10. Click on
11. Choose the sort order for the Combo Box
Page 122
12. Click
13. (To increase the column width of the Combo Box, place your mouse pointer
at the edge of the heading, and Double-click)
14. Click on
15. Type an appropriate Label for your Combo Box
16. Click on
A Combo Box will be created for you at this point you will see it in Design view: (you
may need to drag the control to the right of the label
It should have
Unbound in this
side of the Combo
box
(you may need to drag the control to the right of the label
Page 123
Step 2 - Create a query with criteria that refers to the form and Combo Box
Page 124
3. Click
4. Double-click on the fields to include in the query
(make sure you include the field you want to add criteria to)
5. Click into the criteria row of the field you want to select on (e.g. Department)
6. Click on the Build button in the Query Setup group
Expression Builder will open)
(The
Page 125
7. Double-click on Forms
11. Click OK
(your field should now look like this- you may need to
widen the column:)
Page 126
14. Click on
(you created it in
This is our
query
Page 127
4. Click on
5. (Choose how you want to view the information, if you have selected more
than one table in your query)
6. Click
7. Choose the grouping in this case we want to group by department
Select Department
and click the arrow
button
8. Click on
Page 128
10. Click on
11. Choose a Layout for your Report
12. Click on
13. Choose a Style for your Report
14. Click on
Page 129
16. Click on
Step 4 - Bring it all together and add command buttons to your form
1. Maximise your Form frmSelectDepartmentRunReport
(you created it in step 1 and should be in Design view when you maximise it)
Page 130
We have
selected
the Report
Operations
category
and the
Preview
Report
action
5. Click on
6. Select the Report you want to Preview
7. Click on
9. Click on
10. Type an appropriate name for your button
11. Click on
A Command Button will be created for you at this point you will see it in Design
View
Page 131
Click here to
view the
Departments
to choose
from
Page 132
Page 133
Step 1 - Create and save a blank form with two text boxes
1. Click on the Create tab on the ribbon and select
Forms group)
(from the
You should now have two text boxes on your form at this point you will see them in
Design view
Page 134
It should have
Unbound in this
side of the Text
boxes
8. Select the first Text box, Click on the Property Sheet button
Page 135
Click here
to Minimise
Step 2 - Create a query with criteria that refers to the form and the two Text
Boxes
1. Click on the Query Design button on the Create tab of the ribbon
the Other group)
(in
2. Double-click on the tables you want to use (or Ctrl + click each one and then
click Add)
Which tables do I want to use?
In our example, we regularly want to run a report, which allows
us to select training courses between two dates, grouped by
employees. Therefore we need the tables that hold all of this
information!
3. Click
4. Double-click on the fields to include in the query
(make sure you include the field you want to add criteria to)
Page 136
5. Click into the criteria row of the field you want to select on (e.g. CourseDate)
6. Click on the Builder button in the Query Setup group
(The Expression Builder will open)
8. Double-click on Forms
Page 137
14. Click OK
15. Ctrl + S to Save
16. Type a name that clearly describes the query
Page 138
17. Click on
18. Click the Close button on the query window (and close the Property Sheet
pane)
(you created it in
This is our
query
4. Click on
5. (Choose how you want to view the information, if you have selected more
than one table in your query)
6. Click on
Page 139
8. Click on
9. Choose a Layout for your Report
10. Click on
11. Choose a Style for your Report
12. Click on
Now you will be prompted to Save the report by giving it a Title:
13. Type in a name that clearly describes the report
(bear in mind it will appear as an actual Title on the report but it can be
changed easily enough later!)
Page 140
14. Click on
Page 141
We have
selected
the Report
Operations
category
and, the
Preview
Report
action
5. Click on
6. Select the Report you want to Preview
7. Click on
8. Click on the Text choice, and amend the text
9. Click on
10. Type an appropriate name for your button
11. Click on
A Command Button will be created for you at this point you will see it in Design
View
Before you start tidying your form up, it is worth checking that everything actually
works
Page 142
Page 143
4. Go to Form View you can now select dates from the picker if you wish:
Page 144
We dont
need the
record
selector bar
We dont need
record
navigation
buttons
We dont
need scroll
bars
You can also use AutoFormat to change the background of your form!
Page 145
5. Choose a format
6. Click on
Page 146
Page 147
When I Click
here the
Reports
menu opens!
When I
Click here
the Forms
menu
opens!
Page 148
Page 149
(from the
Now we are going to create a macro so that this form is always maximised upon
opening:
6. Scroll down until you find the On Open property (under the Event tab)
Page 150
9. Click on
10. Choose the Maximize Action
Now we are going to add some descriptive text at the top of the form:
Page 151
18. Change the font name and size, make it bold, change the font colour etc
using these buttons on the Home tab of the Ribbon:
22. Click on
Step 2 - Create the forms that will open from your first screen
Page 152
5. Click on
6. Select the Label in this form
8. Ctrl + S
Page 153
12. Click on
13. Select the Label in this form
15. Ctrl + S
Page 154
Type an
appropriate
Macro
name
Type an
appropriate
Macro
name
Page 155
Type an
appropriate
Macro
name
Choose the
Quit Action
6. Ctrl + S to Save
7. Type a name that clearly describes the Macro Group
8. Click on
Page 156
Step 4 - Add the command buttons that will make your macros work
1. Open your opening screen form
in Design view
6. Find the Caption property and Type an appropriate Caption for the button
7. Find the On Click property (event tab) and Choose the Macro you want
9. Find the Caption property and Type an appropriate Caption for the button
Page 157
10. Find the On Click property and Choose the Macro you want
Create any more command buttons you need, change the Caption and On Click
properties for each one!
Create the exit command button:
11. Click on your form
appear)
13. Find the On Click property and Choose the Exit macro
Page 158
on your secondary
You need to decide on the text that is most informative in your own
examples!
Page 159
Page 160
Page 161
5. Click on
Close your database down, open it up again and check everything works!
How can I get back into the Database with all the options available?
Hold down Shift when you open your Database to open it with all the
standard functionality
Page 162
Data separation
Avoiding problems and enhancing performance
Your tables should always be kept in a different database from the queries, forms,
reports and macros.
There are several reasons for this:
You can give access to the database with all the queries, forms, reports and
macros, but keep the database with the tables in it stored somewhere else on
the network
You avoid the problem of someone accidentally deleting a table (with its data
and structure) if you keep the tables stored somewhere else on the network
(its really easy to just re-link a deleted table)
Page 163
Other users can customise their own forms, reports and other objects while
maintaining a single source of data on the network
You can backup the database with the tables in it on a daily basis
You can backup the database with the queries, forms etc in it as necessary
(when a change is actually made to the queries, forms etc)
Page 164
4. Click on
5. Choose where you would like to save the back-end of your database
Click here
to choose
6. By default Access will cal the Backend the same name with _be on the end.
If you wish you might change the name of your back-end database to
something appropriate
Page 165
7. Click on
8. Click on
Icons show
links ie we are
viewing the
Back End
database from
the Front end
database
3. Click on the tickbox next to the table (or tables) you want to update the links
to:
Page 166
4. Click OK
Linking a new or missing table from your back-end database to your frontend
Important Information!
When working on linked databases it is crucial that they are both in the
locations where they will be stored. If you move the databases
afterwards the links may not work!
1. Open the front-end database
Page 167
4. Click
5. Highlight all the new or missing tables you want to link to
6. Click on
Page 168
5. Click
6. Click on Select All to highlight all tables you want to import.
7. Click on
Setting a password
Close the database first!
Make sure that the database you want to set a password for is closed. If
the database is shared on a network, make sure all other users have
closed the database too! (You may wish to make a back up copy of the
database)
Page 169
7. Click
Page 170
Removing a password
If you want to remove a password from a database, you need to know what the current
password is before you can proceed.
1. Click on the Open from the Office button
2. Click on your database to Select it
3. Click on the arrow to the right of the Open button
Click here
Page 171
7. Click
Your database is no longer password protected the next time this database is opened
the user will be able to just open it in the usual way!
Page 172
6. Choose Copy
7. Navigate to where you want to place your back-up copy
Page 173
Index
Backing-up your Database ............... 172
Cascade Delete ................................. 13
Cascade Update ................................ 13
Closing
Relationship Window ...................... 13
Combo Box
Based on a table ............................. 47
Find Records .................................. 60
Find Records - show full name ....... 64
Find Records - update .................... 66
Limit choices ................................... 52
Lookup comparison ........................ 45
More than one field ......................... 53
Trouble-shooting ............................. 59
Using............................................... 50
What is it ......................................... 45
Command Buttons
Format choices ............................... 69
View record on form........................ 73
Why create...................................... 68
Wizard............................................. 70
Compact & Repair............................ 163
Controls
On Forms ........................................ 44
What are they ................................. 44
Controls and objects ........................ 119
Creating a Password........................ 169
Database
Heirarchy ........................................ 24
Startup .......................................... 161
Deleting
Relationships .................................. 17
Repeated field in sub form .............. 37
Find records
Combo box ..................................... 60
Foreign Key .......................................... 8
Form
Data Entry ....................................... 79
Main and Sub Form Using .............. 40
Sub Forms ...................................... 25
Forms
Formatting..................................... 145
Properties ..................................... 145
Limit choices in Combo box ............... 52
Macro Group
Creating .......................................... 98
Window ........................................... 95
Macro Groups
What are they ................................. 94
Macros
Page 174
Linking .............................................. 8
Relationships .................................... 8
Trouble-shooting
Combo box ..................................... 59
Relationships .................................. 14
User interface
Creating ........................................ 150
Planning ....................................... 149
What is it....................................... 148
What's Wrong
Relationships .................................. 14
Page 175