lesson18 set report controls

28
bdullatif Tarakji [email protected] Set report controls ر ي ر ق ت لما حك ت ر ص ا ن ع ن ي ن ع تAdding controls to a report Managing report fields and properties Formatting report controls Working with labels Modifying data sources Grouping and sorting fields ر ي ر ق ت ل ىا ل ما حك ت ر ص ا ن ع ة اف ض" ا ها ص% ئ صا خ رو ي ر ق ت ل ول ا ق ح دارة" ا ر ي ر ق ت ل ما حك ت ر ص ا ن ع ق ي س4 ن6 ت ات ن م س لن عا م ل م ع ل ا ات ان نD ب لدر ا صا م ل ت عد ت ول ق ح ل ا ر ر ف عو ت مN ج ت

Upload: abdullatif-tarakji

Post on 19-Feb-2017

188 views

Category:

Education


2 download

TRANSCRIPT

Page 1: Lesson18 Set Report Controls

Abdullatif [email protected] Set report controls

التقرير تحكم عناصر تعيينAdding controls to a report

Managing report fields and properties

Formatting report controls

Working with labels

Modifying data sources

Grouping and sorting fields

التقرير الى تحكم عناصر إضافةخصائصها و التقرير حقول إدارةالتقرير تحكم عناصر تنسيق

التسميات مع العملالبيانات مصادر تعديلالحقول فرز و تجميع

Page 2: Lesson18 Set Report Controls

Abdullatif [email protected] Set report controls

التقرير تحكم عناصر تعيين

This section describes how to work with fields and controls on a report. It explains how to add controls, select fields to group and sort records, and how to manage a report’s data source. This section also covers some of

the report and control properties you can set in the property sheet.

. التقرير في التحكم وعناصر الحقول مع العمل كيفية القسم هذا يصفالسجالت، وفرز لتجميع الحقول واختيار التحكم، عناصر إضافة كيفية يشرح . بعضمن أيضا القسم هذا يغطي التقرير في البيانات مصدر إدارة وكيفية. الخصائص صفحة من تعيينها يمكن التي التحكم وعنصر التقرير خصائص

Page 3: Lesson18 Set Report Controls

Abdullatif [email protected] Adding controls to a report

التقرير الى تحكم عناصر إضافة• Reports are designed primarily to present and share

data (unlike forms or tables, which you use to enter, update, and delete data). You often work only with label and text box controls to identify and present data in a report. For example, you might add a label to identify a summary field in a group header section or to provide a title in the Report Header section. You can add a text box to a report and then write an expression to create a calculated field. You can add an image control to enhance the appearance of a report.

• Although the data in a report is more static than in a form or a table, you can use a command button to perform an action related to the report or add a hyperlink control to display a website or an email address. In Report view, command buttons and hyperlinks are operational. In Print Preview, Access doesn’t display a command button, and a hyperlink appears as static text.

البيانات • وتبادل لتقديم رئيسي بشكل التقارير تصمميمكنك) والتي الجداول، أو النماذج عكس على

.) ً غالبا البيانات وحذف وتحديث إلدخال استخدامهاومربع التسمية تحكم عناصر وجود مع فقط نعمل

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

. عنصر إضافة يمكنك محسوب حقل إلنشاء تعبير كتابة. التقرير مظهر لتحسين الصورة تحكم

مما • ثابتة هي التقرير في البيانات أن من الرغم علىأمر زر استخدام يمكنك الجدول، أو النموذج في عليه

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

األوامر. أزرار التقرير، معاينة في اإللكتروني . قبل معاينة في عملية هي التشعبية واالرتباطات

االرتباط ويظهر األمر، يعرضزر األكسيسال الطباعة،. ثابت كنص التشعبي

Page 4: Lesson18 Set Report Controls

Abdullatif [email protected]

To add controls to a report 1. Open the report in Layout view or Design view.

2. On the Report Design Tools Design tool tab, in the Controls group, click the type of control you want to add, and then click in the report page where you want to add the control.

التقرير الى تحكم عناصر إلضافة.1. التصميم عرض أو التخطيط عرض طريقة في التقرير افتح

.2 , , , اضافته تريد الذي التحكم عنصر نوع على اضغط التحكم عناصر مجموعة من التقرير تصميم أدوات في التصميم أداة تبويب من. العنصر إضافة تريد حيث التقرير صفحة في اضغط ثم

Page 5: Lesson18 Set Report Controls

Abdullatif [email protected] report fields and properties

خصائصها و التقرير حقول إدارة• Each control on a report, each report section, and the

report itself has a group of properties that you can work with on the property sheet. (Click Property Sheet on the Report Design Tools Design tool tab to display the property sheet.) For example, you can set properties on the property sheet’s Format tab to fine-tune the formatting for a control. For a text box, you can set properties such as Width, Height, Back Color, Border Style, Border Color, Font Name, Font Size, and Text Align.

• For report sections (such as Detail, Page Header, and Page Footer), you can set the Height property to 0” to hide the section. For the Detail section, set the Can Grow and Can Shrink properties to Yes if you want the size of the Detail section to increase and decrease depending on the amount of information it displays for a particular record. The Report Header and Report Footer sections also have these properties.

مجموعة • لديه نفسه والتقرير تقرير، مقطع كل التقرير، في تحكم عنصر كل . الخصائص صفحة من بها العمل يمكن التي الخصائص من

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

. التحكم لعنصر تنسيق الخصائصلصقل صفحة تنسيق التبويب عالمة مننمط الخلفية، لون االرتفاع، و العرض مثل خصائص تعيين يمكنك النص، لمربع

. النص ومحاذاة الخط، حجم الخط، اسم الحدود، لون الحدود،

• ) تعيين ) يمكنك ، الصفحة وتذييل الصفحة، رأس التفصيل، مثل التقرير ألقسامإلى االرتفاع . 0الخاصية القسم إلخفاء

كنت إذا نعم إلى التقلص وتمكين النمو تمكين خاصية تعيين التفصيل، لمقطعفإنه المعلومات لكمية تبعا والنقصان الزيادة إلى التفصيل مقطع حجم تريد

. . التقرير وتذييل تقرير رأس ً أيضا أقسام لديها معين يعرضلسجل

Page 6: Lesson18 Set Report Controls

Abdullatif [email protected]

• For the Report Header and Report Footer sections and the Page Header and Page

Footer sections, you can also set the Display When property to Always, Print Only,

or Screen Only. If you add page numbers to the Page Footer section,

for example, set Display When to Print Only to show the page numbers only

when you print the report.

• Report properties include the Default View property, which controls whether the

report opens in Print Preview or Report view by default. (The report opens in the

view you specify for the Default View property when you right-click a report in

the Navigation pane and then click Open.) The Grid Y and Grid X properties

control the number and spacing of the dots in the design grid in Design view. If

you use Design view frequently, set the values for Grid Y and Grid X to 10 or to 12

to more easily align controls on the grid.

• You can view and alter the Record Source property for a report by displaying the

property sheet’s Data tab, clicking in the Record Source property box, and then

pressing Shift+F2 to open the Zoom dialog box or clicking the ellipsis button

(…) to view and change the record source in the Query Builder.

العرضعند • تعيين أيضا يمكنك الصفحة، وتذييل رأس ومقاطع التقرير وتذييل رأس لمقاطع . الصفحات أرقام بإضافة قمت إذا فقط الشاشة أو فقط، طباعة دوما، إلى الخاصية تعيينأرقام إلظهار فقط لطباعة العرضعند تعيين المثال، سبيل على الصفحة، تذييل قسم إلى

. التقرير طباعة عند فقط الصفحات

ستفتح • كنت إذا فيما تتحكم التي عرض، االفتراضية الخاصية التقرير خصائص وتشملالتقرير عرض طريقة أو الطباعة قبل معاينة في . التقرير افتراضيا

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

الشبكة في Yوالشبكة Xخصائص التصميم شبكة في النقاط بين وتباعد بعدد تتحكم . األحيان، من كثير في التصميم عرض طريقة تستخدم كنت إذا التصميم عرض طريقة

لشبكة قيم .12أو 10إلى Xوالشبكة Yتعيين بالشبكة للتحكم سهولة أكثر لمحاذاة

عرضعالمة • طريق عن تقرير على للحصول السجل مصدر خاصية وتغيير عرض يمكنكالسجالت، مصدر الخاصية مربع في والنقر الخصائص، صفحة في بيانات التبويب

على الضغط وتغيير )...( Shift + F2ثم لعرض زر على النقر أو تكبير الحوار مربع لفتح. االستعالم منشئ في السجل مصدر

Page 7: Lesson18 Set Report Controls

Abdullatif [email protected] set control and report properties

التقرير و تحكم عنصر خصائص لتعيين1. Open the report in the Design view or Layout view. 2. On the Report Design Tools Design tool tab, click Property Sheet

in the Tools group. 3. Click in the box for the property you want to set, and then select

an option Access provides or enter the value you want to use.

.1. التخطيط عرض طريقة أو التصميم عرض طريقة في التقرير افتح

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

.3 , التي الخيار اختر ثم تعيينها تريد التي للخصائص المربع على اضغط. استخدامها تريد التي القيمة األكسيسإلدخال يوفرها

Page 8: Lesson18 Set Report Controls

Abdullatif [email protected] Formatting report controls

التقرير تحكم عناصر تنسيق• By working with the commands in the Font group on the

Report Design Tools Format tool tab, you can make changes to font properties for labels and other controls on a report.

• For example, click a label on a report and then select the font you want to use from the Font list. You can also change the size of the font, choose a different font color, or apply a background color to a control. Use the alignment buttons to position the text left, right, or centered.

• In the Number group, you can apply a format to fields that use the Number, Currency, or Date/Time data type. For example, select a date field in the report, and then choose a format from the list provided. The format you choose here affects how the date is displayed, but it doesn’t change the date format specified for the field in the table.

• With the commands in the Control Formatting group, you can format controls in other ways. Use the Shape Fill command to add a background color to a control such as the report’s title. The Shape Outline command lets you modify the color and style of a control’s borders.

تبويب • عالمة في خط مجموعة في األوامر مع العمل خالل منعلى تغييرات إجراء يمكنك التقرير، تصميم أدوات من تنسيق. التقرير في األخرى التحكم وعناصر التسميات خصائص الخط

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

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

. توسيط أو يمين، يسار،تستخدم • التي للحقول تنسيق تطبيق يمكنك رقم، المجموعة في

. / المثال، سبيل على الوقت تاريخ أو عملة، رقم، البيانات نوعالقائمة من تنسيق اختر ثم التقرير، في التاريخ حقل حدد

التاريخ،. عرض كيفية على يؤثر هنا تختاره الذي التنسيق المتاحة. الجدول في للحقل المحدد التاريخ تنسيق تغير ال ولكن

عناصر • تنسيق يمكنك التحكم، تنسيق مجموعة في األوامر مع . لون إلضافة التعبئة شكل األمر استخدم أخرى بطرق التحكم

. شكل األمر يتيح التقرير عنوان مثل التحكم عنصر إلى الخلفيةالتحكم عنصر حدود ونمط اللون تعديل يمكن المفصلة الخطوط

Page 9: Lesson18 Set Report Controls

Abdullatif [email protected] To format report controls

التقرير تحكم عناصر لتنسيق1. Open the form in Layout view or Design view. 2. Click the Report Design Tools Format tool tab 3. In the Selection group, select the control you

want to format or click Select All. 4. In the Font group, choose a new font, font size, or

font color; apply bold, italic, or underline formatting; add a background fill color; and align the text.

5. For number, currency, and date and time fields, use the Number group to apply formatting to the field.

6. In the Control Formatting group, do the following:

1. Use the Shape Fill command to add a backgroundfill color to a control.

2. Use the Shape Outline command to apply line styles and colors to the control’s borders.

طريقة 1. أو التخطيط عرض طريقة في التقرير افتح. التصميم عرض

تصميم 2. أدوات في التنسيق أداة تبويب على اضغطالتقرير.

.3 , تريد الذي التحكم عنصر حدد التحديد مجموعة من. الكل تحديد اختر أو تنسيقه

.4 , , خط حجم جديد خط اختر الخط مجموعة من ,) , , ( , تسطير مائل غامق الخط نمط الخط لون أو , النص محاذاة اختر ً أيضا و الخلفية لون تعبئة اختر

.) , , يسار) وسط يمين.5 , , استخدم الوقت و التاريخ و العملة األرقام لحقول

. عليها التنسيق لتطبيق الرقم مجموعة.6: , التالي اختر التحكم عناصر تنسيق مجموعة من

لعنصر 1. لون خلفية إلضافة الشكل تعبئة أمر استخدمالتحكم.

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

Page 10: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 11: Lesson18 Set Report Controls

Abdullatif [email protected] Working with labels

التسميات مع العمل

• When you add a text, number, or date field to a report, Access creates a text box to display the field’s data and creates an associated label to display the field’s name or caption. (Access also creates an associated label for other types of fields, including lookup fields and fields that use the AutoNumber data type). You can then use the techniques described earlier in this chapter to format, size, and position the labels to fit the report’s design.

• To work with the full range of properties available for a label control, open the property sheet (from the Report Design Tools Design tool tab). Specify values on the property sheet’s Format tab for properties such as Width, Height, Back Style, Special Effect, and Font Size. On the property sheet’s Other tab, add a name for the label to replace the default name Access provides.

األكسيس • ينشئ لتقرير، تاريخ حقل أو رقم أو نص إضافة النص عند مربعأو الحقل اسم لعرض المرتlبطة التسمية وينشئ للحقل البيانات لعرض ( . ألنواع بها المرتبطة األكسيستسمية أيضا ينشئ التوضيحية التسمية

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

التقرير.

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

. الخط وحجم خاص، تأثير الخلفية، نمط االرتفاع، و العرض لخصائصمثلذلك، غير التبويب الخصائصعالمة ورقة من

. األكسيس يوفرها التي االفتراضي االسم الستبدال للتسمية اسم إضافة

Page 12: Lesson18 Set Report Controls

Abdullatif [email protected]

• You can also add labels to a report (or a form) that aren’t associated with fields. You might use a freestanding label to provide instructional text on a form or to provide a heading or other display text in a report.

• When you add a label to the Detail section of a report by clicking Label in the Design tool tab’s Controls gallery and then clicking the report, Access by default displays a trace error button. In the Detail section, labels in most cases are associated with controls that display data, so Access considers the addition of the label an error because it detects that the label is not associated with another control. Click this button, and then click Ignore Error if you don’t want to create an association for this label. If you do want to create an association, click Associate Label With A Control to open the Associate Label dialog box. In the dialog box, select the control you want to associate with the label.

• You can turn off the error-checking options related to labels in the Access Options dialog box. These options appear on the Object Designers page.

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

عرض من غيرها أو عنوان لتوفير أو النموذج في تعليمات. التقرير النصفي

بالضغط • التقرير من التفصيل مقطع إلى تسمية إضافة عندمعرضعناصر التبويب عالمات تصميم أداة في تسمية على

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

تعرض التي التحكم عناصر مع محددة الحاالت معظميكتشف ألنه خطأ التسمية إضافة األكسيس يعتبر البيانات،

. هذا على انقر آخر تحكم عنصر مع ترتبط ال التسمية أنالزر،

رابطة إنشاء في ترغب ال كنت إذا الخطأ تجاهل فوق انقر ثم . انقر مقترنة، تسمية إنشاء في ترغب كنت إذا التسمية لهذهتسمية الحوار مربع لفتح التحكم بعنصر مقترنة تسمية فوق

تريد. الذي التحكم عنصر حدد الحوار، مربع في مشاركة. التسمية مع اقترانه

بالتسميات • المتعلقة األخطاء تدقيق الخيارات إيقاف يمكنكاألكسيس خيارات الحوار مربع على. في الخيارات هذه تظهر. الكائنات مصممو صفحة

Page 13: Lesson18 Set Report Controls

Abdullatif [email protected] turn off error checking for labels

للتسميات الخطأ تدقيق إليقاف1. Click the File tab, and then click Options. 2. In the Access Options dialog box, click

the Object Designers category. 3. In the Error checking in form and report

design view section, clear the Check for unassociated label and control and Check for new unassociated labels check boxes.

.1. , خيارات على اضغط ملف قائمة من

.2 , اضغط األكسيس خصائص حوار مربع من. الكائنات مصممو فئة على

طريقة 3. في األخطاء تدقيق قائمة فيبإزالة قم التقارير و النماذج تصميم عرض

: من الصح إشارةغير تحكم عنصر و تسمية من التحقق

مقترن, . جديدة مقترنة غير تسميات من التحقق

Page 14: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 15: Lesson18 Set Report Controls

Abdullatif [email protected] Modifying data sources

البيانات مصادر تعديل• A report is tied to the data in a single table, multiple tables, or a

query (which is itself based on one or more tables). Many report controls are bound to specific fields in the report’s record source (also called its data source). When you create a report, Access builds the record source depending on tables and fields you select. You can also specify the record source yourself when you work in Design view or Layout view. The data source for a specific control is governed by its Control Source property. The Control Source property can be set to a specific field in the report’s record source or to an expression. For example, you can add a text box to a report and then enter an expression such as =[City] & “, “ & [State] & [Postal Code] to create the last line of an address block.

• You can base a report (or multiple reports) on a query that you’ve designed and saved as an object in your database. However, if you modify the query, you might also affect the design of the report. To work around this possibility, you can embed a query in the report’s Record Source property. An embedded query is not saved as a separate object, so any changes you make to the embedded query are also reflected in the report. Access creates an embedded query when you build a report in Layout view or Design view by adding fields from the field list. The Report wizard creates an embedded query when you select fields from more than one table.

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

.) في بحقول مرتبطة التقرير تحكم عناصر من العديد جدول من .) به ) الخاص البيانات مصدر أيlضا وتسمى التقرير سجل مصدlرعلى اعتمادا السجل األكسيسمصدر ينشئ تقرير، إنشاء عند

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

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

مثل التعبير أدخال وثم لتقرير نص مربع إضlافة يمكنك[=City[ “ ,“ ]& &State[ ]&Postal Code]

. العنوان كتلة من األخير السطر إلنشاء• ) قمت ) الذي االستعالم على متعددة تقارير أو تقرير إسناد يمكنك

. ومع بك الخاصlة البيانات قاعدة في ككائن وحفظها بتصميمهتصميم على أيضا تؤثر قد االستعالم، بتعديل قمت إذا ذلك،

االحتمال،. هذا على للتغلب كمحاولة التقرير . التقرير في السجالت خصائصمصدر في استعالم تضمين يمكنك

أية تنعكس لذلك مستقل، ككائن المضمن االستعالم حفظ يتم ال . التقرير في أيضا المضمن االستعالم على تجريها تغييرات

عرض في تقرير إنشاء lعند المضمن االستعالم األكسيس ينشئمن الحقول إضافة طريق عن التصميم عlرض طريlقة أو تخطيط

. عند من مضمن استعالم بإنشاء المعالج تقرير الحقول قائمة. واحد جدول من أكثر من الحقول تحديد

Page 16: Lesson18 Set Report Controls

Abdullatif [email protected]

• To create or modify the record source for a report, open the property sheet and then click the property sheet’s Data tab. You can choose a different table or query by clicking in the Record Source box and then selecting an object from the list of tables and queries in the database. Click the ellipsis button in the Record Source box to open the Query Builder. Use the Query Builder to add or remove fields for the current record source or to create the record source yourself.

• When you open the Query Builder in a report that is based on a single table, Access prompts you to create a query based on the table, which converts the report’s record source to an embedded query. In the Query Builder, drag the fields you want to include in the report from the table to the Field row in the design grid. (You can also double-click a field to add it to the design grid.) If you want to add fields from a related table, click Show Table on the Query Tools Design tool tab to open the Show Table dialog box. You can then select other tables or queries to add to the report’s record source. After updating the record source, test the query by clicking Run on the Query Tools Design tool tab to open the query in Datasheet view.

• To modify the Control Source property for a specific control, open the property sheet and display its Data tab. Click in the Control Source box and then pick another field from the report’s record source, or click the ellipsis to open the Expression Builder, which you can use to create an expression for a calculated control.

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

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

)...( . في عالمة زر فوق انقر البيانات قاعدة في واالستعالمات . االستعالم منشئ لفتح السجالت مصدر مربع

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

واحد، • جدول الى يستند تقرير في االستعالم منشئ فتح عندوالذي جدول، إلى يستند استعالم بإنشاء األكسيس يطالبك . منشئ في مضمن استعالم إلى التقرير سجل مصدر يحول

من التقرير في تضمينها تريد التي الحقول اسحب االستعالم، ( . أيضا يمكنك التصميم شبكة في الحقول صف إلى الجدول

). إذا التصميم شبكة إلى إلضافته حقل فوق مزدوجا نقرا النقرفوق انقر مرتبط، جدول من حقول إضافة في ترغب كنت

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

النقر بواسطة االستعالم واختبار السجل، مصدر تحديث بعدتصميم أداة استعالم أدوات التبويب عالمة في تشغيل فوق

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

. به الخاصة البيانات تبويب الخصائصوعرضعالمة صفحةمن آخر حقل اختيار ثم التحكم عنصر مصدر المربع فوق انقر

التعبير، )...( منشئ لفتح فوق انقر أو التقرير، سجل مصدرتحكم عنصر عن تعبير إلنشاء استخدامها يمكنك والتي

محسوب.

Page 17: Lesson18 Set Report Controls

Abdullatif [email protected] modify a report’s record source

التقرير سجل مصدر لتعديل1. Open the report in Design view or Layout view. 2. On the Report Design Tools Design tool tab,

in the Tools group, click Property Sheet. 3. On the property sheet’s Data tab, click in the

Record Source box. 4. Select a different table or query from the list in

the property box Or Click the ellipsis to open the Query Builder, use the Query Builder to modify the fields in the form’s record source, and then close the Query Builder.

عرض 1. أو التصميم عرض طlريقة في التقرير افتحالتخطيط.

تصميم 2. أدوات lفي التصميم أداة تبويب عالمة من , صفحة, lاضغط أدوات مجموعة من التقرير

الخصائص..3 , الخصائص صفحة lفي بيانات التبويب عالمة من

. السlجل مصدر مربع على اضlغطمربع 4. قائمة من مختلف استعالم أو جدول اختر

الخصائص.

أو , )...( lمنشئ استخدم االستعالم lمنشئ لفتح lعلى اضغط , lثم النموذج سجل مصدر lفي الحقول لتعديل االستعالم

. االستعالم منشlئ أغلق

Page 18: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 19: Lesson18 Set Report Controls

Abdullatif [email protected] modify the Control Source property

التحكم عنصر مصدر خصائص لتعديل1. Open the report in Design view

or Layout view. 2. On the Design tool tab, in the Tools

group, click Property Sheet. 3. On the property sheet’s Data tab, click

in the Control Source box. 4. Select a different field from the list in

the property box, or click the ellipsis to open the Expression Builder to create an expression for the control.

التصميم 1. عرض طريقة في التقرير افتح. التخطيط عرض أو

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

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

مربع 4. قائمة من مختلف حقل اخترمنشئ, )...( لفتح اضغط أو الخصائص

. التحكم لعنصر تعبير إلنشاء التعبير

Page 20: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 21: Lesson18 Set Report Controls

Abdullatif [email protected] Grouping and sorting fields

الحقول فرز و تجميع• Specifying how records are grouped in a report is an important aspect

of the report’s design. You can set grouping levels when you use the Report wizard and by using the Group & Sort command when you create a report in Layout view or Design view. The Grouping & Totals group on the Report Design Tools Design tool tab also includes the Totals command, which you use to summarize field values in a report.

• When you click Group & Sort, Access displays the Group, Sort, And Total pane at the bottom of the report window. Click Add A Group, and then select the field you want to use for grouping. Access adds a group header section to the report that uses the name of the field you select. To add a grouping level, click Add A Group again and select another field.

• If you work in Layout view, Access displays more clearly how the selections you make in the Group, Sort, And Total pane affect the report’s organization. Access doesn’t show this level of detail in Design view.

• Click Add A Sort in the Group, Sort, And Total pane to sort records within each grouping level. For example, in a budget report, you could group records first by country or region and then sort records within that group by expense category. You could also group by expense category and sort records within that group by the date of the expense.

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

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

. التقرير في الحقول قيم لتلخيص استخدامها يمكنك والتي المجاميع،األكسيس • يعرض الفرز، و التجميع فوق النقر و عند الفرز و التجميع

. إضافة فوق انقر التقرير نافذة من السفلي الجزء في االجمالي . ويضيف للتجميع استخدامه تريد الذي الحقل حدد ثم مجموعة،

اسم يستخدم الذي للتقرير المجموعة رأس مقطع إلى األكسيس . التجميع، مستوى إلضافة تحدده الذي الحقل

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

يؤثر جزء والمجاميع الترتيب، التجميع، تجريها التي التحديدات كيفية . التفصيل من المستوى هذا يظهر األكسيسال التقرير منظم على

. التصميم عرض طريقة فيلفرز • جزء واالجمالي الفرز، التجميع، في الفرز إضافة فوق انقر

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

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

التكلفة.

Page 22: Lesson18 Set Report Controls

Abdullatif [email protected]

When you click More in the Group, Sort, And Total pane, Access displays additional options that you can set for grouping and sorting fields:

• Sort Order Use this option to specify the sort order, either ascending or descending.

• Group Interval Use this option to specify how records are grouped. You can group a text field on the first letter, for example, which would group all A items together, all B items, and so on. Date fields can be grouped by day, week, month, quarter, or an interval you define.

• Totals You can add totals for multiple fields and apply different summary functions (Sum and Avg or Min and Max, for example) to the same field. Use the Total On list to select a field, use the Type list to select the function, and then select the options you want to use to show the totals.

• Title Use this option to change the title of the field being summarized. The title is used for the column heading and for labeling summary fields in headers and footers. Click the field link, and then enter the new title in the Zoom dialog box.

الفرز، التجميع، جزء في أكثر فوق النقر عنداألكسيس يعرض التي اإلجمالي، اإلضافية الخيارات

تعيينها يمكنك: الحقول وفرز لتجميع

تصاعدي ترتيب إما الفرز، لتحديد الخيار هذا استخدم. تنازلي أو

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

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

. تحددها فاصل أو ربع، شهر،متعددة االجمالي لحقول اجمالي إضافة يمكنك

أو ) ومتوسط مجموع تلخيصمختلفة داالت وتطبيقMin وMax . ) الحقل نفس إلى المثال سبيل على ،

استخدم حقل، لتحديد القائمة من اإلجمالي استخدامتريد التي الخيارات حدد ثم دالة، لتحديد القائمة نوع

. المجاميع إلظهار استخدامهاالتي عنوان الحقل عنوان لتغيير الخيار هذا استخدم

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

. التكبير الحوار مربع

Page 23: Lesson18 Set Report Controls

Abdullatif [email protected]

• With/Without A Header Section Use this setting to add or remove the header section for each group. Access moves the grouping field to the header when you add the header section. Access prompts you to remove any controls (other than the grouping field) from the header when you remove it.

• With/Without A Footer Section Use this setting to add or remove the footer section that follows each group. When you remove a footer section that contains controls, Access asks for confirmation to delete the controls.

• Keep Group Together The settings for this option determine how groups are laid out on the page when the report is printed.

To summarize the values in a field and add a text box that displays the summary value, click in the field you want to summarize and then click Totals in the Grouping & Totals group. The options available depend on the data type of the field you select. For numeric fields, the range of options include Sum, Average, Count, Max, and Min. For text and Date/Time fields, the Count options are available.

الرأس/ • مقطع بدون اإلعداد مع هذا استخدم . مجموعة لكل الرأس مقطع إزالة أو إلضافة

إضافة الرأسعند إلى التجميع حقل ينقل أكسيس . عناصر أي بإزالة األكسيس يطالبك الرأس مقطع

) الرأسعند ) من التجميع حقل بخالف تحكمإزالته.

التذييل/ • مقطع بدون اإلعداد مع هذا استخدمكل يتبع الذي التذييل مقطع إزالة أو إلضافة

يحتوي. الذي التذييل مقطع إزالة عند مجموعةعلى للتأكيد األكسيس يسأل تحكم، عناصر على

. التحكم عناصر حذفمعا • المجموعة تحدد إبقاء الخيار هذا إعدادات

عند الصفحة على من مجموعات وضع كيفية. التقرير طباعة

الذي النص مربع وإضافة حقل في القيم لتلخيصتريد الذي الحقل في انقر التلخيص، قيمة يعرض

المجموعة في إجماليات فوق انقر ثم تلخيصه . على تعتمد المتاحة الخيارات واالجمالي التجميع . الرقمية، للحقول تختارها التي الحقل بيانات نوع

المتوسط، المجموع، تتضمن خيارات من ومجموعة . قيمة وأدنى قيمة، أكبر العدد،

. العدد / خيارات تتوفر الوقت، والتاريخ النص لحقول

Page 24: Lesson18 Set Report Controls

Abdullatif [email protected] group and sort records in a report

التقرير في السجالت فرز و لتجميع1. Open the report in Layout view

or Design view. 2. On the Report Design Tools Design tool

tab, click Group & Sort. 3. In the Group, Sort, and Total pane, click

Add a group, and then select the field to group by.

4. In the Group, Sort, and Total pane, click More, and then specify settings for sorting, grouping intervals, totals, title, header and footer sections, and how to keep groups together on the page.

عرض 1. أو التصميم عرض في التقرير افتحالتخطيط.

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

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

.4 , , , اضغط اإلجمالي و الفرز التجميع جزء من , , و, التجميع و للفرز االعدادات حدد ثم أكثر

, , و, التذييل و الرأس مقاطع العنوان اإلجماليعلى ً معا بالمجموعات االحتفاظ كيفية

الصفحة.

Page 25: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 26: Lesson18 Set Report Controls

Abdullatif [email protected]

Page 27: Lesson18 Set Report Controls

Abdullatif [email protected] summarize values on a report

التقرير في القيم لتلخيص1. Open the report in Layout view or Design view.

2. In the report, select the field you want to summarize. 3. On the Design tool tab, in the Grouping & Totals group, click Totals,

and then choose the summary function you want to apply.

.1. التخطيط عرض أو التصميم عرض طريقة في التقرير افتح.2. , تلخيصه تريد الذي الحقل اختر التقرير في

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

Page 28: Lesson18 Set Report Controls

Abdullatif [email protected]