lesson8 manage records

26
bdullatif Tarakji [email protected] Manage records ات ل ج س ل ا دارة اAdding, updating, and deleting records Appending records To work with records in Datasheet view Finding, sorting, and filtering data To create an advanced filter To save a filter as a query , , لات ج س ل ا ف و حذ ث ي جذ ت ة اف ض ا لات ج س جاق ل ا ة ورف رض ع ي ف لات ج س ل عا م ل م ع ل ل ات ان ي1 ب ل ا, , لات ج س ل ا ة ي ف ص ت و ر ر لف ا ث ح ب ل ا ذمة ق ت م ل ا ة ي ف ص ت لءا ا ش ن لا لام ع ت س كا ة ي ف ص ت ل لا م عاM ظ ف ح ل

Upload: abdullatif-tarakji

Post on 16-Feb-2017

203 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Lesson8 Manage Records

Abdullatif [email protected]

Manage records السجالت إدارة

Adding, updating, and deleting records

Appending records

To work with records in Datasheet view

Finding, sorting, and filtering data

To create an advanced filter

To save a filter as a query

, السجالت, حذف و تحديث إضافةسجالت إلحاق

عرض في السجالت مع للعملالبيانات ورقة

, السجالت, تصفية و الفرز البحثالمتقدمة التصفية إلنشاء

كاستعالم التصفية عامل لحفظ

Page 2: Lesson8 Manage Records

Abdullatif [email protected] Manage records

السجالت إدارةYou can manage the records in a table in Datasheet view. This section describes how to add, update, and delete records, and also how to find, sort, and filter records when you need to work with records that match specific criteria. The section also describes how you can append records to an existing table.

ورقة عرض خالل من الجداول في السجالت إدارة يمكنك , , حذف. و تحديث إضافة كيفية القسم هذا يشرح البيانات

, , عندما, السجالت تصفية و الفرز البحث كيفية أيضاً و السجالت . مخصصة معايير تناسب التي السجالت مع العمل الى تحتاج

موجود جدول الى سجالت إلحاق كيفية أيضاً القسم هذا .يشرح

Page 3: Lesson8 Manage Records

Abdullatif [email protected], updating, and deleting

records , السجالت, حذف و تحديث إضافة

• The actions of adding a record, updating a record’s value, or deleting a record can be affected by table relationships and whether a relationship enforces referential integrity. You can’t add or change a record in a table when a related record is required in another table—for example, you can’t add the details of an order to the Order Details table unless a record for that order exists in the Orders table. Similarly, Access prevents you from deleting a record in one table (a task, for example) that creates orphan records in another table (issues related to that task).

• In a relationship that enforces referential integrity, the Cascade Update Related Fields and Cascade Delete Related Records options in the Edit Relationships dialog box determine how Access manages records you update or delete. In the Northwind sample database, for example, in the relationship between the Orders and Order Details tables, Cascade Delete Related Records is selected. If you delete a record from the Orders table, related records will be deleted from the Order Details table.

• , , حذفسجل أو سجل قيمة تحديث سجل كإضافة النشاطاتالتكامل تفرض العالقة سواء و الجدول بعالقات تتأثر أن يمكن

يكون. عندما الجدول في سجل تغيير أو إضافة يمكنك ال المرجعيآخر، جدول في مطلوب يكون المرتبط السجل

جدول إلى الطلبية تفاصيل إضافة يمكن ال المثال سبيل علىجدول في الطلبية لهذ سجل يوجد لم ما الطلبيات تفاصيل

الطلبيات. واحد جدول في حذفسجل من يمنع األكسيس برنامج بالمثل، و ) آخر) جدول في يتيمة سجالت يخلق أن المثال سبيل على مهمة،

.) المهمة) هذه في المتعلقة القضايا• , تحديث تتالي خيارات المرجعي التكامل تفرض التي العالقات في

صندوق في المرتبطة السجالت حذف تتالي و المرتبطة الحقولالتي للسجالت االكسيس إدارة كيفية تحدد العالقات تحرير حوار

. تحذف التي أو تحدثالبيانات قاعدة في المثال سبيل بين Northwindعلى العالقة

السجالت حذف تتالي الطلبيات تفاصيل جدول و الطلبيات جدولالسجالت. الطلبيات جدول من بحذفسجل قمنا اذا المحددة

. الطلبيات تفاصيل جدول من ً تلقائيا تحذف سوف المرتبطة

Page 4: Lesson8 Manage Records

Abdullatif [email protected] work with records in Datasheet

view البيانات ورقة عرض في السجالت مع للعمل

1. In the Records group, on the Home tab, click New.

, , الرئيسية الصفحة تبويب من السجالت مجموعة فيجديد .اضغط

2. Enter the values for each field that defines the record. السجل تعرف التي حقل كل في القيم .أدخل

3. In the Records group, click Save. . , حفظ اضغط السجالت مجموعة من

Page 5: Lesson8 Manage Records

Abdullatif [email protected]

To work with records in Datasheet view

البيانات ورقة عرض في السجالت مع للعمل4. To update the value for a field, select the

field, and then enter the new value.

, , الحقل اختر للحقل القيم لتحديثالجديدة القيمة أدخل .ثم

5. To delete a value from a specific field, select the value, and then click Delete

in the Records group. , , القيمة اختر محدد حقل من قيمة لحذف

السجالت مجموعة من حذف اضغط .ثم

Page 6: Lesson8 Manage Records

Abdullatif [email protected] work with records in Datasheet

view البيانات ورقة عرض في السجالت مع للعمل

6. To delete a record, click the record selector

(at the right edge of the table), and then click Delete Record in the

Records group. , على اضغط لحذفسجلحافة ) من السجالت محدد ,) اضغط ثم اليمنى الجدولمجموعة من حذفسجل

.السجالت

Page 7: Lesson8 Manage Records

Abdullatif [email protected] Appending records

سجالت إلحاق• When you import data from Excel or a text file, you can choose an option to append records to

an existing table. (This option reads Append A Copy Of The Records To The Table). Access adds the records in the source data to the table you specify. The steps for importing the data are

then essentially the same as when you import data into a new table. • To avoid errors when you append data, the organization of the external data source should

match the structure of the table you are appending records to.

• , جدول الى السجالت إللحاق خيار اختيار يمكنك نصي ملف أو اكسيل ملف من بيانات استيراد عند . . األكسيسيضيف برنامج الجدول الى السجالت من نسخة إلحاق الخيار هذا يقرأ ً مسبقا موجود

. المحدد الجدول الى البيانات مصدر من السجالت. جديد جدول الى بيانات استيراد عند الخطوات نفس هي أساسي بشكل البيانات استيراد خطوات

• , الجدول بنية يناسب ان يجب الخارجية البيانات مصدر تنظيم بيانات الحاق عند األخطاء لتجنب. به السجالت سنلحق الذي

Page 8: Lesson8 Manage Records

Abdullatif [email protected] append records to a table in the current database

الحالية البيانات قاعدة في جدول في سجالت إللحاق

1. On the External Data tab, click the command for the data source you want to import.

2. In the Get External Data dialog box, click Append a copy of the records to the table, and then select the table you want to append records to.

3. Click Browse to locate the file with the source data, and then click OK.

4. Follow the steps in the import wizard to import and append the data.

5. In the Get External Data dialog box, select Save import steps if you want to save the steps in this operation.

.1 , لتحديد األمر اضغط خارجية بيانات تبويب من. استيرادها تريد التي البيانات مصدر

.2 , اضغط خارجية بيانات احضار حوار صندوق مناختر ثم جدول الى السجالت من نسخة الحاق

. اليه السجالت إلحاق تريد الذي الجدولالبيانات 3. مصدر ملف لتحديد استعراض اختر

. موافق اضغط ثمالستيراد 4. االستيراد معالج من الخطوات تابع

. البيانات الحاق و.5 , اختر خارجية بيانات احضار حوار صندوق من

خطوات حفظ أردت اذا االستيراد خطوات حفظالعملية.

Page 9: Lesson8 Manage Records

Abdullatif [email protected]

Page 10: Lesson8 Manage Records

Abdullatif [email protected], sorting, and filtering data

, السجالت, تصفية و الفرز البحثOver time, a database grows to include thousands of records. Locating a

specific record by scrolling through a table’s datasheet (or by using a form) is inefficient in circumstances like this. To locate a record or a group of

records that share specific criteria, you can use commands to find, sort, and filter records in Datasheet view.

. تحديد السجالت من اآلالف لتشمل تنمو بيانات قاعدة الوقت، مرور معباستخدام ) أو للجدول البيانات ورقة خالل من التمرير طريق عن معين سجل . من( مجموعة أو سجل لتحديد القبيل هذا من ظروف في فعالة غير النموذج

األوامر استخدام يمكنك محددة، بمعايير تشترك التي السجالتالبيانات ورقة عرض في السجالت تصفية و الفرز، .البحث،

Page 11: Lesson8 Manage Records

Abdullatif [email protected] Finding records

السجالت عن البحثTo find records

1. In the Navigation pane, double-click the table to open it in Datasheet view.

2. On the Home tab, click Find. 3. In the Find and Replace dialog box, enter the text

you want to find in the Find What box. 4. In the Look In list, select Current field or Current

document (which refers to the entire table). 5. In the Match list, select Whole Field, Any Part of

Field, or Start of Field. 6. In the Search list, select All, Up, or Down. 7. Select Match Case to perform a case-sensitive

search. 8. Select Search Fields As Formatted if you want to

search the data as it is formatted in the datasheet. 9. Click Find Next.

السجالت عن للبحث

جزء 1. من البيانات ورقة عرض طريقة في الجدول افتحالتنقل.

.2. بحث اضغط الرئيسية الصفحة من

.3 , الذي النص ادخل استبدال و بحث حوار صندوق منعنه البحث تريد

. عن البحث مربع في

.4 , , المستند أو الحالي الحقل اختر في البحث قائمة منالحالي

) الجدول) داخل الى يشير الذي

.5 , , من جزء أي الحقل كامل اختر مطابقة قائمة من. الحقل, بداية او الحقل

.6. , , , أسفل او أعلى الكل اختر البحث قائمة في

الحرف 7. حالة لتحديد الحرف حالة مطابقة اخترالحرف) او الكبير للحرف اإلنكليزية باللغة خاص

الصغير(.

تريد 8. كنت اذا تنسيقها حسب الحقول عن البحث اخترقاعدة في تنسيقها حسب البيانات عن البحث

البيانات.

.9. التالي عن البحث اضغط

Page 12: Lesson8 Manage Records

Abdullatif [email protected]

Page 13: Lesson8 Manage Records

Abdullatif [email protected] Sorting records

السجالت فرزTo sort records from the Home tab

الصفحة تبويب من السجالت لفرزالرئيسية

• 1. In the Navigation pane, double-click the table to open it in Datasheet view.

جزء من البيانات ورقة عرض في الجدول افتحالتنقل

• 2. Click the field you want to sort by. فرزه تريد الذي الحقل على اضغط

• 3. On the Home tab, in the Sort & Filter group, click Ascending or Descending.

, فرز مجموعة من الرئيسية الصفحة تبويب من , تنازلي أو تصاعدي اضغط تصفية .و

. األكبر الى األصغر من لألرقام التصاعدي الفرزاألصغر الى األكبر من لألرقام التنازلي .الفرز

Page 14: Lesson8 Manage Records

Abdullatif [email protected] To sort records by using a shortcut menu

اsلمتقدم الفرز تطsبيق و لتحديد• 1. In the Navigation pane, double-click

the table to open it in Datasheet view. البيانات ورقة عرض في الجدول افتح

التنقل جزء .من• 2. Right-click the field you want to sort

by, and then click the command for the sort order you want to use. (The

command names depend on the field’s data type.)

الحقل على اليمين ماوس بزر اضغطأمر على اضغط ثم فرزه تريد الذياستخدامه تريد الذي الترتيب و الفرز

) الحقل) بيانات نوع بحسب مسمى األمر

Page 15: Lesson8 Manage Records

Abdullatif [email protected] set up and apply an advanced sort

الsمتقدم sفرزsال تطsبيق و إلعداد1. In the Navigation pane, double-click the table

to open it in Datasheet view. 2. On the Home tab, in the Sort & Filter group,

click Advanced, and then click Advanced Filter/Sort.

3. In the Advanced Filter/Sort window, drag the field or fields you want to sort by to the Field row in the grid.

4. In the Sort row, select the sort order you want to use.

5. In the Sort & Filter group, click Toggle Filter to sort the records.

6. Click Remove Sort to return the table to its default sort order.

البيانات 1. ورقة عرض في المطلوب الجدول افتح. التنقل جزء من

.2 , و الفرز مجموعة من و الرئيسية الصفحة تبويب من , فرز, اختر ثم متقدمة خيارات على اضغط التصفية

. متقدمة تصفية واو 3. الحjقل اسحjب المjتقدمة التصفية و الفرز نافذة من

في الحقل سطر الى بحسب فرزها تريد التي الحقولالشبكة.

.4. , استخدامه تريد الذي الفرز ترتيب اختر الفرز سطر من

التصفية 5. تبديل اضغط التصفية و الفرز مجموعة من. السجjالت لفرز

الفرز 6. ترتيب الى الجjدول إلعادة الفرز إزالة اضغطاالفتراضي.

Page 16: Lesson8 Manage Records

Abdullatif [email protected]

1

2

3

Page 17: Lesson8 Manage Records

Abdullatif [email protected] Filtering records

السsجالت تصsفيsة• By applying a filter to a table in Datasheet view,

you can select the specific set of records you want to review, such as all orders placed on or after a specific date, or all amounts less than or greater than a target.

• Access provides many ways to filter records. For example, click in the column for the field you want to filter, and then click Filter in the Sort & Filter group. Access displays a menu with the values in that field. Clear the Select All check box, select the check box for each value you want to view, and then click OK to apply the filter. Click the Toggle Filter button to display all the records in the table again. (You can display the same menu by clicking the arrow to the right of a column name.)

• , البيانات ورقة عرض في للجدول التصفية بتطبيقتjريد التي السجالت من محددة مجموعة اختيار يمكنك

تاريخ, بjعد او على الطلبيات كل وضع مثل عرضها. الهدف, من اكثر او اقل هي التي الكميات كل أو محدد

• . السجالت لتصفية طرق عدة يؤمن األكسيس برنjامج , , ثم تصفيته تريد الذي الحقل اختر المثال سبيل على

. برنjامج فرز و تصفية مجموعة من تصفية اختر . كل ازل الحقل هذا في بالقيم قائjمة يjعرض األكسيس

, تريد التي قيمة لكل مربع اختر المحددة الخيارات . على, اضغط التصفية لتطبيق موافق اضغط ثم رؤيتها

في السجالت لعرضكل التصفية عامل تبديل زر ( . القائمة نفس عرض يمكن أخرى مرة الجدول

). العمود اسم يمين على السهم على بالضغط

Page 18: Lesson8 Manage Records

Abdullatif [email protected]

To filter by a field in Datasheet view ورقة عرض في الحقل حسب للتصفية

البيانات1. Select the field you want to filter by,

and then click Filter in the Sort & Filter group on the Home tab.

, بحسب تصفيته تريد الذي الحقل اخترمجموعة من تصفية على jاضغط ثم

الصفحة تبويب من تصفية و فرز.الرئيسية

2. In the menu that Access displays, clear the check box for Select All.

, األكسيس يظهرها التي القائمة منعلى بالضغط االختيارات جميع أزل

الكل تحديد .مربع3. Select the check box for each field

value you want to view, and then click OK.

تريد حقل قيمة لكل الخيار مربع اخترعرضها

موافق اضغط .ثم

Page 19: Lesson8 Manage Records

Abdullatif [email protected] filter by selection in Datasheet view

البيانات ورقة عرض في التحديد حسب للتصفية1. Select the value or the portion of a value you

want to use as the filter. تريد التي القيمة من جزء أو القيمة اختر

للتصفية .استخدامها2. In the Sort & Filter group on the Home tab,

click Selection. الصفحة تبويب من التصفية و الفرز مجموعة من

التحديد على اضغط .الرئيسية3. In the menu Access displays, select the

expression for the filter (Equals, Does Not Equal, or another filtering option).

, التعبير اختر تظهر التي األكسيس قائمة في , , تصفية ) خيار أي او تساوي ال تساوي للتصفية

.أخرى4. Click Toggle Filter to remove the filter

from the table. التصفية إلزالة التصفية عامل تبديل على اضغjط

الجدول .من

Page 20: Lesson8 Manage Records

Abdullatif [email protected]

To filter by form النموذج حسب للتصفية

1. In the Sort & Filter group on the Home tab, click Advanced and then click Filter By Form.

الصفحة تبويب من التصفية و الفرز مجموعة منتصفية اضغط ثم متقدمة خيارات اضغط الرئيسية

النموذج .حسب

2. In the Filter by Form window, on the Look for tab, enter the value in the field or fields you want to

use as the filter. بحث تبويب من النموذج حسب تصفية نافذة من

تريد التي الحقول او الحقل في القيمة أدخل ألجلللتصفية .استخدامها

3. Click the Or tab to set up OR conditions. بها الخاصة الشروط إلعداد أو تبويب .اضغط

4. In the Sort & Filter group, click Toggle Filter to apply the filter.

Click Toggle Filter again to remove the filter. عامل تبديل اضغط التصفية و الفرز مجموعة من

. عامل تبديل اضغط التصفية لتطبيق التصفيةالتصفية إلزالة أخرى مرة .التصفية

Page 21: Lesson8 Manage Records

Abdullatif [email protected] To create an advanced filter

المتقدمة التصفية إلنشاء1. On the Home tab, in the Sort & Filter group, click Advanced,

and then click Advanced Filter/Sort. , , , متقدمة خيارات اضغط التصفية و الفرز مجموعة من و الرئيسية الصفحة تبويب من

متقدمة تصفية و فرز اضغط .ثم2. In the Advanced Filter/Sort window, in the Field row in the grid,

select the fields you want to use in the filter. , , الشبكة في الحقل اسحبسطر متقدمة تصفية و فرز نافذة من

للتصفية استخدامها تريد التي الحقول .اختر3. In the Criteria row, specify the expression to use in the filter.

, التصفية في المستخدم التعبير حدد المعايير سطر .في4. In the Sort & Filter group, click Toggle Filter to apply the filter.

Click Toggle Filter again to remove the filter. . , التصفية لتطبيق التصفية عامل تبديل اضغط التصفية و الفرز مجموعة من

التصفية إلزالة أخرى مرة التصفية عامل تبديل .اضغط

Page 22: Lesson8 Manage Records

Abdullatif [email protected]

1 2

3

Page 23: Lesson8 Manage Records

Abdullatif [email protected] To use a query as a filter

كتصsفيsة االسsتعالم اسsتخدام

1. On the Home tab, in the Sort & Filter group, click Advanced and then click Advanced Filter/Sort.

, , , متقدمة خيارات اضغط التصفية و الفرز مجموعة من و الرئيسية الصفحة تبويب منمتقدم تصفية و فرز اضغط .ثم

2. Click Advanced again, and then choose Load from Query. استعالم من تحميل اختر ثم أخرى مرة متقدمة خيارات .اضغط

3. In the Applicable Filter dialog box, select the query you want to use as a filter, and then click OK.

, , اضغط ثم للتصفية استخدامه تريد الذي االستعالم اختر للتطبيق القابل التصفية عامل حوار صندوق من.موافق

4. In the Sort & Filter group, click Toggle Filter to apply the filter.Click Toggle Filter again to remove the filter.

. , التصفية لتطبيق التصفية عامل تبديل اضغط التصفية و الفرز مجموعة منالتصفية إلزالة أخرى مرة التصفية عامل تبديل .اضغط

Page 24: Lesson8 Manage Records

Abdullatif [email protected]

1 2 3

45

Page 25: Lesson8 Manage Records

Abdullatif [email protected] To save a filter as a query

كاستعالم التصفية عامل sلحفظ1. On the Home tab, in the Sort & Filter group, click Advanced, and then click Advanced

Filter/Sort. , , , متقدjمة خيارات اضغط التصفية و الفرز مجموعة من و الرئيسية الصفحة تبويب من

متقدمة تصفية و فرز اضغط .ثم2. In the Advanced Filter/Sort window, in the Field row in the grid,

select the fields you want to use in the filter. , , تريد التي الحقول اختر الشبكة في الحقل سطر اسحب متقدمة تصفية و فرز نافذة من

للتصفية .استخدامها3. In the Criteria row, specify the expression to use in the filter.

, التصفية في المستخدjم التعبير حدjد المعايير سطر .في4. Click Advanced, and then choose Save As Query.

كاستعالم حفظ اختر ثم متقدمة خيارات .اضغط5. Enter a name for the query in the Save As Query dialog box, and then click OK.

موافق اضغط ثم كاستعالم حفظ حوار صندjوق من االستعالم اسم .أدخل

Page 26: Lesson8 Manage Records

Abdullatif [email protected]

1 2

3