• توجه: در صورتی که از کاربران قدیمی ایران انجمن هستید و امکان ورود به سایت را ندارید، میتوانید با آیدی altin_admin@ در تلگرام تماس حاصل نمایید.

اموزش کامل Access 2010-En

A M I R

کاربر ويژه
[h=2]Working with Tables


[h=4]To Change the Alternate Row Color:
Select the Home tab and locate the Text Formatting group.

Click the Alternate Row Color drop-down arrow.

05_05_02_AltRowColorDD.png


Select a color from the drop-down menu, or select No Color to remove the alternate row color.

05_05_03_colordd.png


Your alternate row color will be updated.

05_05_04_UpdatedRowColor.png
 

A M I R

کاربر ويژه
[h=2]Working with Tables
[h=4]Modifying Gridlines
Another way Access makes your tables easier to read is by adding gridlines that mark the borders

of each cell. Gridlines are the thin lines that appear between each cell, row, and column of your

table. By default, gridlines are dark gray and appear on every side of a cell, but you can change

their color, or hide undesired gridlines.




05_horizvertgridlines.png

 

A M I R

کاربر ويژه
[h=2]Working with Tables


[h=4]To Customize Which Gridlines Appear:

Select the Home tab and locate the Text Formatting group.

Click the Gridlines drop-down arrow.

05_05_06_Gridlines.png


Select the gridlines you would like to appear. You can choose to have horizontal gridlines between the

rows, vertical gridlines between the columns, both types of gridlines, or none at all.


05_05_07_gridlinesdda.png



The gridlines on your table will be updated.

05_05_08_updatedGridlines.png
The original vertical and horizontal gridlines


05_05_08_updatedGridlines2.png
The updated horizontal-only gridlines



[h=4]

 

A M I R

کاربر ويژه
[h=2]Working with Tables

[h=4]Additional Formatting Options

To view additional formatting options, click the Datasheet Formatting arrow located

in the bottom right corner of the Text Formatting group.




05_05_09_DatasheetArrow.png


The Datasheet Formatting dialog box offers many advanced formatting options, including the ability to

modify background color, gridline color, and border and line style. It even includes the ability to view a

sample
table with your formatting choices, so play around with the various formatting options until you get your table looking the way you want it.




05_formattingsplat.png

 

A M I R

کاربر ويژه
[h=2]Working with Tables


[h=3]Challenge[h=3]
If you haven't already, download our sample database and open it.

Open the Customers table.

Add a new record to the table. Be sure to enter data for every field.

Find the record with the name Tyra Kirby, and replace it with a name of your choice.

Change the alternate row color.

Hide a field, then unhide it.

 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Introduction

While you can always enter data directly into database tables, you might find it easier to use forms. Using a form to

enter data lets you be certain that you're entering the right data in the right location and format. This can help keep your database accurate and consistent.

This lesson will address the benefits of using forms in a database. You will review examples of

different forms and form components. Finally, you will learn how to use forms to enter new records and view and edit existing ones.

06_01_Intro.png


 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Why Use Forms?

Many of us fill out forms so often that we hardly even notice when we're asked to use them. Forms are so

popular because they're useful for both the person asking for the information and the person providing it. They

are a way of requiring information in a specific format, which means the person filling out the form knows

exactly which information to include and where to put it.

ac07_form.gif



This is just as true of forms in Access. When you enter information into a form in Access, that data goes exactly

where it's supposed to go-- into one or more related tables. While entering data into simple tables is fairly

straightforward, data entry becomes more complicated as you start populating tables with records from elsewhere

in the database. For instance, the orders table in a bakery's database might link to information about

customers, products, and prices drawn from related tables. A record with information about a single order might look like this:




06_02_01_OrderRecTable1.png

In fact, in order to see the entire order, you would also have to look at the order

items table
, where the menu items that make up each order are recorded.




06_02_02_OrderRecTable2.png



The records in these tables include ID numbers of records from other tables. You can't learn much just

by glancing at these records, as the ID numbers don't tell you much about the data they relate to. Plus, since

you have to look at two tables just to view one order, you might have a hard time even finding the right

data. It's easy to see how viewing or entering many records this way could become a difficult and tedious task.




A form containing the same data might look like this:

06_02_03_OrderRecForm.png




As you can see, this record is much easier to understand when viewed in a form. Modifying the record would

be easier, too, since you wouldn't have to know any ID numbers to enter new data. When you're using a form, you

don't have to worry about entering data into the right tables or in the right format-- the form can handle those

things itself. There's no need to go back and forth between tables or search carefully within a table for a certain

record, since forms let you see entire records one at a time.




Not only do forms make the data entry process easier for the user, they keep the database itself working

smoothly. With forms, database designers can control exactly how users are able to interact with the

database. They can even set restrictions on individual form components to ensure that all of the needed

data is entered, and that it's all entered in a valid format. This is useful, as keeping the data consistent and

well-organized is essential for an accurate and powerful database.

 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]To Open an Existing Form:
Open your database and locate the Navigation Pane.

In the Navigation Pane, locate the form you would like to open. Forms are marked with the
06_03_01_FormIcon.png
icon.

Double-click the name of the form. It will open and appear as a tab in the Document Tabs bar.

06_03_02_OpenForm.png



 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]Entering and Modifying Data
Depending on the database you're using, the forms you work with may include special tools and features

that let you do common tasks with one click of a button. You'll see examples of these tools in the interactives

on the next page. However, no matter what type of form you're working with, you can follow the same

procedures for carrying out certain basic tasks.



 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]To Add a New Record:

There are two ways to add a new record to a form:

In the Records group on the Home tab of the Ribbon, click the New command.

06_03_03_RibbonNew.png


On the Record Navigation bar at the bottom of the window, click the New Record button.

06_03_04_RecNavNew.png




 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]To Find an Existing Record to View or Edit:
There are two ways to find and view an existing record using a form, and they both use the Navigation Bar at the bottom of the screen:

To look through records one at a time, click the navigation arrows. The right arrow

will take you to the next record, and the left arrow will take you to the previous one.




06_03_05_NavArrow.png



To search for a record, type a word that you know is contained in that record in the navigation search box.

06_03_06_Search.png

 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]To Save the Current Record:
Select the Home tab and locate the Records group.

Click the Save command. The current record will be saved.

06_03_07_Save.png





 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=4]To Delete the Current Record:
Select the Home tab and locate the Records group.

Click the Delete command. The record will be permanently deleted.

06_03_08_Delete.png
 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Using Form Features
The exact procedure you use for filling out a form will vary depending on the content and design of the

form you are using. The forms in your database might be similar to the examples in the two interactives

below. Between them, they include most of the features you'll commonly encounter in forms.




Background.png





 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]New Record Button
Clicking the New Record button will create a new record with all fields cleared except for fields with a default value.


Button-NewRec.png




 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Drop-Down Search Box

This drop-down search box allows you to search for existing records. Simply begin typing, and

records that match your search will appear in the drop-down list. You can also browse

existing records - just click the drop-down arrow and scroll through the list of records.



SearchBox.png


 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Text Box

Most data entry using forms is done with labeled text boxes. A text box is the Access

equivalent of the blank space where you would write your information on a paper form. To

enter data into a text box, simply click in the text box and begin typing.



TextBox-FirstName.png


 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Text Box with Validation Rule
If the database designer has created any rules specifying what type of data can be entered

in each field, these rules will be reflected in the related forms. If you encounter a

message like this one, simply click OK and re-enter the data following the instructions in the dialog box.



ValidationError.png


 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]Combo Box
In order to guarantee that users only enter valid responses, the database

designer may use a combo box. A combo box allows you to enter data by choosing from a drop-down list of choices.



MailingList.png


 

A M I R

کاربر ويژه
[h=2]Working with Forms


[h=3]More Form Buttons

Form buttons can provide quick and easy ways to carry out common tasks. Buttons are

usually labeled with text or with icons similar to those used on the Ribbon or Quick Access

Toolbar
. From left to right, the buttons here allow a user to save, delete, or print the current record.



SaveDeletePrint.png


 
بالا