WEBVTT
Kind: captions
Language: en

00:00:11.420 --> 00:00:15.590
Creating a form can save you a lot of time
in the long run because it makes it easier

00:00:15.590 --> 00:00:18.510
to input the data into one or more tables.

00:00:18.510 --> 00:00:22.090
And in this video, we're just going to go
over the basics of creating a form from a

00:00:22.090 --> 00:00:28.170
table, adding additional fields, and inserting
a drop-down menu into the form.

00:00:28.170 --> 00:00:32.349
In the Navigation pane, you'll need to select
the table that you want to use.

00:00:32.349 --> 00:00:35.440
And you don't need to open it—just make
sure that the name is highlighted.

00:00:35.440 --> 00:00:38.370
I'm using the Customers table.

00:00:38.370 --> 00:00:44.560
Then in the Create tab… you can click the
Form command… and it will create a new form

00:00:44.560 --> 00:00:47.930
that contains all of the fields from your
table.

00:00:47.930 --> 00:00:51.710
Before you do anything else, you should save
this form.

00:00:51.710 --> 00:00:58.520
I'll call it Customers Form.

00:00:58.520 --> 00:01:01.559
Sometimes your form will include a subform.

00:01:01.559 --> 00:01:05.750
Access will create one of these if your table
is linked to another table.

00:01:05.750 --> 00:01:09.620
For example, here, our Customers table is
linked to the Orders table.

00:01:09.620 --> 00:01:14.400
So this subform will include a list of any
orders that the customer has placed.

00:01:14.400 --> 00:01:16.190
In many cases, this may be useful.

00:01:16.190 --> 00:01:20.920
But if you don't need the subform, you can
delete it by just clicking on it… and pressing

00:01:20.920 --> 00:01:24.039
the Delete key.

00:01:24.039 --> 00:01:28.840
Now if we later decided to add a field to
the Customers table, it would not appear automatically

00:01:28.840 --> 00:01:31.850
in this form, so we would need to add it manually.

00:01:31.850 --> 00:01:36.929
To do this, you can select Add Existing Fields
from the Design tab… and this will open

00:01:36.929 --> 00:01:41.189
up the Field List, which shows all of the
fields from this table.

00:01:41.189 --> 00:01:44.009
You can just double-click a field to add it
to the form.

00:01:44.009 --> 00:01:49.890
Or, if you want to add a field from a different
table, click Show all tables… and then locate

00:01:49.890 --> 00:01:53.259
the table and field that you want.

00:01:53.259 --> 00:01:58.920
But for now, we have all of the fields that
we need, so I'm just going to close this pane.

00:01:58.920 --> 00:02:04.280
With some fields, you may want to add a drop-down
menu, which Access calls a combo box.

00:02:04.280 --> 00:02:07.990
This can make the form easier to use because
the user can just click on the value that

00:02:07.990 --> 00:02:09.380
they want.

00:02:09.380 --> 00:02:14.300
I'm going to create a combo box for the Add
to Mailing List field.

00:02:14.300 --> 00:02:21.220
In the Design tab, find the Controls group…
and select the Combo Box command.

00:02:21.220 --> 00:02:25.530
Then you can just click on the form where
you want it to go.

00:02:25.530 --> 00:02:28.200
The Combo Box Wizard will open up.

00:02:28.200 --> 00:02:32.269
And if you have a long list of values, you
can click the first option to pull the values

00:02:32.269 --> 00:02:34.350
from a table or a query.

00:02:34.350 --> 00:02:38.000
But I'm going to select the second option,
so that I can type in the exact values that

00:02:38.000 --> 00:02:41.970
I want.

00:02:41.970 --> 00:02:48.040
Here you can type in each value… and in
most cases, you'll just use the first column.

00:02:48.040 --> 00:02:52.340
I'm typing three different values, and I'm
pressing the tab key after each one to go

00:02:52.340 --> 00:02:54.120
to the next row.

00:02:54.120 --> 00:02:59.720
And if you need to, you can adjust the width
of the column.

00:02:59.720 --> 00:03:02.580
And then click Next.

00:03:02.580 --> 00:03:04.660
Now this next step is very important.

00:03:04.660 --> 00:03:09.349
When the user chooses a value from the combo
box, we want the value to be stored in the

00:03:09.349 --> 00:03:10.860
Customers table.

00:03:10.860 --> 00:03:16.049
We'll need to select the second option…
and pick the field that we want.

00:03:16.049 --> 00:03:20.350
In this case, our combo box is going to be
asking about the mailing list, so I'll choose

00:03:20.350 --> 00:03:25.879
the Add to Mailing List field.

00:03:25.879 --> 00:03:28.510
And then in the last step, you can type a
label.

00:03:28.510 --> 00:03:32.980
I'm going to call it "Add to Mailing List?"

00:03:32.980 --> 00:03:36.439
And click Finish.

00:03:36.439 --> 00:03:38.900
The combo box will appear here.

00:03:38.900 --> 00:03:42.799
And we don't need the original field anymore,
so we can delete it.

00:03:42.799 --> 00:03:51.010
To test the combo box, we can switch to Form
view… and you can see that our three options

00:03:51.010 --> 00:03:54.080
appear here.

00:03:54.080 --> 00:03:58.040
So now we have a working form, and in the
next couple of videos we're going to make

00:03:58.040 --> 00:04:01.040
some more adjustments to it to make it better
suit our needs.

