lesson19 format reports

27
Abdullatif Tarakji [email protected] Format reports لتقارير تنسيق اApplying themes to reports Adding information to report headers and footers Adding backgrounds and images to a report Applying page setup options Adding calculated fields Sorting records in a report لتقاريرت في السما تطبيق ا التقريرى رأس و تذييلت ال إضافة معلوما و الصور الى التقريرخلفياتفة ال إضارات إعداد صفحة تطبيق خيا إضافة حقول محسوبة التقريرت في فرز السج

Upload: abdullatif-tarakji

Post on 22-Jan-2018

251 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Lesson19 Format Reports

Abdullatif [email protected] Format reports

تنسيق التقارير

• Applying themes to reports

• Adding information to report headers and footers

• Adding backgrounds and images to a report

• Applying page setup options

• Adding calculated fields

• Sorting records in a report

تطبيق السمات في التقارير•

إضافة معلومات الى رأس و تذييل التقرير•

إضافة الخلفيات و الصور الى التقرير•

تطبيق خيارات إعداد صفحة•

إضافة حقول محسوبة•

فرز السجالت في التقرير•

Page 2: Lesson19 Format Reports

Abdullatif [email protected] Format reports

تنسيق التقارير

You can use a variety of tools and techniques to format a report and the controls and other objects (such as images) that you include on a report.

For example, you can add a background image, apply a theme to a report, or arrange a report’s data in two or more columns.

This section describes these and other aspects of formatting a report.

لتحكم يمكنك استخدام مجموعة متنوعة من األدوات والتقنيات لتنسيق التقرير وعناصر ا. التي تشتمل في التقرير( مثل الصور)وغيرها من العناصر

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

Page 3: Lesson19 Format Reports

Abdullatif [email protected]

Applying themes to reports تطبيق السمات في التقارير

• In reports, themes provide font and color schemes. You can apply a built-in theme when you work with a report in Layout view or Design view. Choose a theme in the Themes gallery that Access displays when you click Themes on the Report Design Tools Design tool tab (or Report Layout Tools Design tool tab). If Live Preview is enabled, Access displays a preview of the theme as you hover your mouse pointer over the options in the gallery.

• When you apply a theme to a report, that theme is inherited by other objects in the database. You can apply a different theme to a specific report or change the theme used by reports and other objects that share a common theme. To apply a theme to database objects, right-click a theme in the gallery, and then click one of the following options:

• Apply Theme To All Matching Objects • Apply Theme To This Object Only • Make This Theme The Database Default

• When you apply a theme to a specific object, Access lists this theme in the In This Database group in the Themes gallery. A ScreenTip identifies which object a theme applies to or whether a theme applies to the database.

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

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

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

.مؤشر الماوس فوق الخيارات في المعرض

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

سمة المستخدمة من قبل التقارير وغيرها من األشياء التي تشترك في الس األيمن لتطبيق سمة على كائنات قاعدة البيانات، انقر بزر الماو. المشتركة

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

تطبيق سمة لهذا الكائن فقط•

جعل هذه السمة قاعدة البيانات االفتراضية•

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

لى تلميح شاشة يحدد الكائن الذي ينطبق على سمة أو ما إذا كان ينطبق ع.السمة إلى قاعدة البيانات

Page 4: Lesson19 Format Reports

Abdullatif [email protected]

Page 5: Lesson19 Format Reports

Abdullatif [email protected] Adding information to report headers and footers

إضافة معلومات الى رأس و تذييل التقرير

• In Layout view and Design view, you can use commands in the Design tool tab’s Header/ Footer group to insert standard elements in a report’s header and footer sections. The Page Numbers command opens a dialog box in which you select a format, position, and alignment for page numbers. Page numbers appear in the Page Header or Page Footer section and can be centered or aligned at the left or right border. Clear the check box for the Show Number On First Page option to start pagination on the report’s second page.

• The Logo, Title, and Date And Time commands add information to the Report Header section by default. You could add the date and time to the Page Header or Page Footer section by adding a text box control and then entering the expression =Date() or =Time().

م في عرض تخطيط وعرض التصميم، يمكنك استخدا•تذييل أداة/ األوامر في عالمات التبويب مجموعة رأس

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

قام حيث يمكنك تحديد تنسيق، والموضع، والمحاذاة ألرفحة تظهر أرقام الصفحات في قسم رأس الص. الصفحات

أو تذييل الصفحة ويمكن أن تكون مركزية أو محاذاة تيار قم بإلغاء تحديد خانة االخ. الحدود لليسار أو لليمين

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

ومات الشعار، العنوان، والتاريخ والوقت أوامر تضيف معل•. إلى قسم رأس التقرير بشكل افتراضي

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

.()Date() or =Time=النص ثم إدخال التعبير

Page 6: Lesson19 Format Reports

Abdullatif [email protected] To insert information in a report header or footer

إلضافة معلومات الى رأس و تذييل التقرير

1. In the Navigation pane, right-click the report, and then click Design View or Layout View.

2. On the Report Design Tools Design tool tab, in the Header/Footer group, click the option for the element you want to add to the form.

1. Logo Select the image file from the Insert Picturedialog box.

2. Title Enter a title for the report in the label control that Access provides.

3. Date and Time Specify the date and time format you want to use in the Date and Time dialog box.

4. Page Numbers Specify the format, location (in the Page Header or Page Footer section), and alignment for report page numbers.

م ث, اضغط زر ماوس اليمين على التقرير, من جزء التنقل1..اضغط عرض التخطيط أو عرض التصميم

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

.اضافتها الى النموذج

.اختر صورة الملف من مربع حوار إدراج صورةشعار1.

التي أدخل العنوان للتقرير في عنصر تحكم التسميةعنوان2..يؤمنها األكسيس

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

طع في مق)و المحاذاة , الموقع, حدد التنسيقترقيم الصفحة4.يرلترقيم صفحة التقر( رأس الصفحة أو تذييل الصفحة

Page 7: Lesson19 Format Reports

Abdullatif [email protected]

Page 8: Lesson19 Format Reports

Abdullatif [email protected] Adding backgrounds and images to a report

إضافة الخلفيات و الصور الى التقرير

• To use an image as the background for a report, click Background Image on the Report Design Tools Format tool tab. Click Browse, and then open the location where the image file you want to use is stored.

• After you add the background image, you should set properties to modify how Access displays it. Right-click the report and choose Report Properties. In the property sheet, click the Format tab. The properties you use to control the display of a background image include the following: Picture Type, Picture, Picture Tiling, Picture Alignment, and Picture Size Mode.

• You can also insert an image to provide a visual element to a report. On the Design tool tab in Layout view or Design view, click Insert Image. Select an image in the image gallery (which shows snapshots of images used on forms or other reports) or click Browse to open the Insert Picture dialog box, where you can locate the image file you want to include. Use the picture-related properties listed earlier in this topic to adjust how Access displays the image.

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

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

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

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

.الصورة، ونمط حجم الصورة

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

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

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

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

Page 9: Lesson19 Format Reports

Abdullatif [email protected] To add an image to a report background

إلضافة صورة الى خلفية التقرير

1. Open the report in Layout view or Design view.

2. Click the Report Design Tools Format tool tab.

3. In the Background group, click Background Image.

4. Select an image in the Image gallery, or click Browse to open the Insert Picture dialog box to locate the image file you want to use.

5. On the Report Design Tools Design tool tab, click Property Sheet, and then select Report in the Selection Type list.

6. On the property sheet’s Format tab, specify settings for the Picture Type, Picture, Picture Tiling, Picture Alignment, and Picture Size Mode properties.

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

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

.يةاضغط على صورة الخلف, من مجموعة الخلفية3.

أو اضغط , اختر الصورة من معرض الصور4.استعراض لفتح صندوق حوار إدراج صور

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

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

.تقرير من قائمة نوع التحديد

حدد , من تبويب التنسيق في صفحة الخصائص6., نوع الصورة: االعدادات للخصائص التالية

و , محاذاة الصورة, تجانب الصورة, الصورة.نمط حجم الصورة

Page 10: Lesson19 Format Reports

Abdullatif [email protected]

Page 11: Lesson19 Format Reports

Abdullatif [email protected] To add an image to a report

إلضافة صورة الى التقرير1. Open the report in Layout view

or Design view.

2. Click the Design tool tab.

3. In the Controls group, click Insert Image.

4. Select an image in the Image gallery, or click Browse to open the Insert Picture dialog box to locate the image file you want to use.

5. In the report, click where you want the image to appear.

6. On the Design tool tab, click Property Sheet. (Be sure the image is selected in the Selection Type list.)

7. On the property sheet’s Format tab, specify settings for the Picture Type, Picture, Picture Tiling, Picture Alignment, and Picture Size Mode properties.

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

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

.اضغط إدراج صورة, من مجموعة عناصر التحكم3.

أو اضغط , اختر الصورة من معرض الصور4.ديد استعراض لفتح صندوق حوار إدراج صور لتح

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

.اضغط حيث تريد إظهار الصورة, في التقرير5.

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

دد ح, من تبويب التنسيق في صفحة الخصائص7., نوع الصورة: االعدادات للخصائص التالية

و نمط , محاذاة الصورة, تجانب الصورة, الصورةحجم الصورة

Page 12: Lesson19 Format Reports

Abdullatif [email protected]

Page 13: Lesson19 Format Reports

Abdullatif [email protected] Applying page setup options

تطبيق خيارات إعداد صفحة• When a report is open in Design view or Layout view, the

ribbon displays the Page Setup tool tab, which contains commands in two groups: Page Size and Page Layout. Use the commands in these groups to set page size and orientation, margins, and columns. You can also use the Page Setup dialog box to manage settings for these aspects of a report. Use the Page Setup dialog box when you want to apply custom settings instead of the standard settings Access provides.

• The options for a report’s page size include Letter (8.5 by 11 inches), A4 (8.27 by 11.69 inches), or Legal (8.5 by 14 inches). Choose the size you want to apply to the report from the options displayed on the Size menu in the Page Size group.

• To adjust the margins for a report, click Margins in the Page Size group, and then choose one of the three options Access provides: Normal, Wide, and Narrow. You can refer to the dimensions Access lists and the simple preview to gauge how the margins affect the space provided for the data the report presents.

• Select the Print Data Only option in the Size group if you want to print the report’s data without the formatting applied to the report. To set the page orientation for the report, in the Page Layout group, select the Portrait or Landscape option.

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

ذه استخدام األوامر في ه. حجم الصفحة وتخطيط الصفحة: في مجموعتين. االتجاه، الهوامش، واألعمدة, المجموعات لتحديد حجم الصفحة

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

.إعدادات مخصصة بدال من اإلعدادات القياسية التي يوفرها األكسيس

وتشمل الخيارات المتاحة لحجم الصفحة تقرير •، (بوصة8.27X11.69)A4، (بوصة8.5X11)لرسالة

ر من اختيار الحجم الذي تريد تطبيق لتقري(. بوصة8.5X14)أو النظامية .الخيارات المعروضة في القائمة الحجم في المجموعة حجم الصفحة

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

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

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

.حدد الخيارات عمودي أو افقي

Page 14: Lesson19 Format Reports

Abdullatif [email protected]

• If you want to set up a columnar report, click Columns in the Page Layout group, and then specify settings on the Columns tab in the Page Setup dialog box. You need to consider the number of fields, the width of report controls, and the page size when you set up a report in columns. Columnar reports are best used for lists, directories, or other types of reports that include only a few fields. Stacking the fields (by using the stacked layout, for example) can also save space.

• Use the Grid Settings area to specify the number of columns and to set how much space appears between rows and columns. Adjust column dimensions by using the Width and Height boxes in the Column Size area. Select Same As Detail to fit the columns within the Detail section of the report. In the Column Layout area, click an option to indicate how the columns of data will be arranged.

• The Page Setup dialog box also includes the Print Options and Page tabs. You can set specific dimensions for a report’s margins on the Print Options tab instead of using the Normal, Wide, or Narrow option provided in the Page Size group. The Print Options tab also includes the Print Data Only check box.

• The Page tab provides options also available in the Page Layout and Page Size groups, including the Portrait and Landscape options for the report’s page orientation and page size settings. If you want Access to use printer settings for a printer other than the default printer specified for your computer, select Use Specific Printer, click Printer, and then specify the printer.

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

تاج تح. ثم حدد اإلعدادات على عالمة التبويب أعمدة في مربع الحوار إعداد الصفحة

عند إلى النظر في عدد من الحقول، وعرض لعناصر تحكم التقرير، وحجم الصفحة

ألدلة، أو من األفضل أن تستخدم التقارير عمودية للقوائم، وا. إعداد تقرير في األعمدة

ل تكديس الحقو. أنواع أخرى من التقارير التي تشمل سوى عدد قليل من الحقول

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

ين استخدام مساحة إعدادات الشبكة لتحديد عدد األعمدة ووضع مقدار المساحة يظهر ب•

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

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

ها ترتيب وفي مجال تخطيط العمود، انقر فوق خيار لإلشارة إلى الكيفية التي سيتم ب

.األعمدة من البيانات

. صفحةيتضمن مربع الحوار إعداد الصفحة أيضا خيارات الطباعة وعالمات تبويب ال•

اعة بدال من يمكنك تعيين أبعاد محددة لهوامش التقرير على عالمة التبويب خيارات الطب

. استخدام عادي، عريض، أو الخيار ضيق الخيار المؤمن في مجموعة حجم الصفحة

.ويشمل التبويب خيارات الطباعة أيضا خانة االختيار طباعة البيانات فقط

جموعة يوفر عالمة التبويب صفحة الخيارات المتاحة أيضا في تخطيط الصفحة وم•

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

الطابعة إذا كنت تريد استخدام األكسيس إعدادات الطابعة للطابعة أخرى غير. التقرير

االفتراضية المحددة لجهاز الكمبيوتر الخاص بك، حدد استخدام الطابعة محددة،

.انقر فوق الطابعة، ومن ثم تحديد الطابعة

Page 15: Lesson19 Format Reports

Abdullatif [email protected] To specify page size settings for a report

لتحديد إعدادات حجم الصفحة للتقرير

1. In the Navigation pane, right-click the report, and then click Design View or Layout View.

2. Click the Report Layout Tools Page Setup tool tab.

3. In the Page Size group, click Size, and then click an option for the report’s page size.

4. Click Margins, and then click one of the default options for page margins.

على اضغط كليك يمين, من نافذة جزء التنقل1.ثم اضغط عرض التخطيط او , التقرير

.عرض التصميم

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

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

ثم اضغط على واحد من , اضغط هوامش4..الخيارات لهوامش الصفحة

Page 16: Lesson19 Format Reports

Abdullatif [email protected]

Page 17: Lesson19 Format Reports

Abdullatif [email protected] To specify page layout settings for a report

لتحديد إعدادات تخطيط الصفحة للتقرير

1. In the Navigation pane, right-click the report, and then click Design View or Layout View.

2. Click the Page Setup tool tab.

3. In the Page Layout group, click Portrait or Landscape to set the page orientation.

4. Click Page Setup to open the Page Setup dialog box. Use the tabs in the dialog box to specify the following settings.

1. Print Options tab Set the page margins, and select Print Data Only if you want to apply this option.

2. Page tab Choose a paper size, and specify the printer to use to produce the report.

ى اضغط كليك يمين عل, من نافذة جزء التنقل1.ثم اضغط عرض التخطيط , التقرير

.أو عرض التصميم

.اضغط على تبويب أداة اعداد صفحة2.

اضغط على , من مجموعة تخطيط الصفحة3..عمودي أو افقي لتعيين اتجاه الصفحة

اضغط اعداد صفحة لفتح مربع حوار اعداد 4.ار في مربع الحوالتبويباتاستخدم . صفحة

:لتحديد االعدادات التاليةو, تعيين هوامش الصفحةتبويب خيارات الطابعة1.

.ياراختر طباعة البيانات فقط اذا أردت تطبيق هذا الخ

ي و حدد الطابعة الت, اختر حجم الورقتبويب صفحة2..ستستخدمها إلنتاج التقرير

Page 18: Lesson19 Format Reports

Abdullatif [email protected]

Page 19: Lesson19 Format Reports

Abdullatif [email protected] To specify column settings for a report

لتحديد اعدادات العمود للتقرير

1. In the Navigation pane, right-click the report, and then click Design View or Layout view.

2. Click the Page Setup tool tab. 3. In the Page Layout group,

click Columns. 4. On the Columns tab in the Page

Setup dialog box, specify the number of columns, the row and column spacing, the column size, and the column layout option, and then click OK.

5. Open the report in Print Preview to test the settings.

اضغط كليك يمين, من نافذة جزء التنقل1.ثم اضغط عرض التخطيط, على التقرير

.أو عرض التصميم

.اضغط على تبويب أداة اعداد صفحة2.

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

من تبويب األعمدة في مربع حوار اعداد 4.مسافة األعمدة و , حدد عدد األعمدة, صفحة

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

باعة افتح التقرير في عرض معاينة قبل الط5..الختبار االعدادات

Page 20: Lesson19 Format Reports

Abdullatif [email protected]

Page 21: Lesson19 Format Reports

Abdullatif [email protected]

Page 22: Lesson19 Format Reports

Abdullatif [email protected] Adding calculated fields

إضافة حقول محسوبة• In reports, you can use a calculated field to augment the information

provided by the data fields. You can combine text fields by using the concatenation operator (the ampersand, &). For example, a calculated field of this type lets you display a contact’s last name and first name in a single control.

=[First Name] & “ “ & [Last Name]

• You could also use the concatenation operator to create a custom label by using an expression such as the following:

=”Please send your comments to “ & [ First Name]

• To set up a calculated field, add a text box to the report, display the property sheet, and then click the ellipsis in the Control Source property to open the Expression Builder. Use the Expression Builder to add functions, operators, constants, and identifiers (which refer to the names of fields or tables, for example).

• By using arithmetic operators, you can add, subtract, multiply, or divide the values in numeric fields. In a report that summarizes the amount spent in a specific budget category, divide that amount by the budget field to display the percentage spent of the total budget.

=Sum([AmountSpent])/[CampaignBudget]

• As shown in the examples in this section, enclose identifiers such as field names in square brackets.

. لبياناتفي التقارير، يمكنك استخدام حقل محسوب لزيادة المعلومات المقدمة من حقول ا•(. &عالمة االضافة، )يمكنك الجمع بين حقول النص باستخدام مشغل سلسلة

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

• =[First Name] & “ “ & [Last Name]

م تعبير يمكن أيضا استخدام عامل التشغيل سلسلة إلنشاء تسمية مخصصة باستخدا•:مثل ما يلي

• =”Please send your comments to “ & [ First Name]

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

سماء الحقول التي تشير إلى أ)التعبير إلضافة الداالت والمشغالت والثوابت، ومعرفات (.أو الجداول، على سبيل المثال

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

.المبلغ حسب الحقل الميزانية لعرض نسبة قضى من مجموع الميزانية

• =Sum([AmountSpent])/[CampaignBudget]

كما هو مبين في األمثلة في هذا الباب، •.أرفق معرفات مثل أسماء الحقول في أقواس مربعة

Page 23: Lesson19 Format Reports

Abdullatif [email protected] To create a calculated field

إلنشاء حقل محسوب1. Open the report in Design view or

Layout view. 2. Add a text box control to the report,

and then select that control. 3. On the Report Design Tools Design

tool tab, click Property Sheet. 4. On the property sheet’s Data tab,

click in the Control Source box, and then do one of the following.

1. Enter the expression that defines the calculated field directly in the Control Source box.

2. Press Shift+F2 to open the Zoom dialog box, and enter the expression in the dialog box.

3. Click the ellipsis in the Control Source box to open the Expression Builder for help writing the expression.

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

ثم , أضف عنصر تحكم مربع نص للتقرير2..حدد عنصر التحكم

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

اضغط, من عالمة تبويب ورقة الخصائص4.ثم قم , على مربع مصدر عنصر التحكم

:بواحدة من التاليوب أدخل التعبير الذي يعرف مباشرة الحقل المحس1.

.في مربع مصدر عنصر التحكم

, لفتح مربع حوار التكبيرShift+F2اضغط 2..و أدخل التعبير في مربع الحوار

من مربع مصدر عنصر التحكم )...( اضغط على 3..لتعبيرلفتح منشئ التعبير لمساعدتك في كتابة ا

Page 24: Lesson19 Format Reports

Abdullatif [email protected]

Shift+F2

Page 25: Lesson19 Format Reports

Abdullatif [email protected] Sorting records in a report

ترتيب السجالت في التقرير

• As you can for forms, you can use the Order By and Order By On Load properties to change the sort order for the records in a report without changing the sort order specified in its record source.

• These properties appear on the Data tab in a report’s property sheet. In the Order By property, enter the name of the field (enclosed in brackets) by which you want to sort the records. You can use more than one field by separating field names with a comma. By default, records are sorted in ascending order. Enter DESC after a field name to sort that field in descending order.

• The setting you specify for the Order By property is saved with the report, but the sort order is not automatically applied when you open the report unless you set Order By On Load to Yes.

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

.في مصدر سجلها

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

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

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

.هذا الحقل في ترتيب تنازلي

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

.التحميل إلى نعم

Page 26: Lesson19 Format Reports

Abdullatif [email protected]

To set the Order By and Order By On Load properties لتعيين الترتيب حسب و الترتيب حسب عند التحميل

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 Order By property box, and then enter the name of the field or fields you want to sort by. Enclose the field names in brackets, and separate multiple field names with a comma. To sort in descending order, enter DESC after a field’s name.

4. To sort the records when the form is opened, set Order By On Load to Yes.

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

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

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

يد أدخل اسم الحقل أو أسماء الحقول التي ترمع اغالق أسماء الحقول , ترتيبها حسب

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

ين ع, لترتيب السجالت عند تحميل النموذج4..نعمالترتيب حسب عند التحميل الى

Page 27: Lesson19 Format Reports

Abdullatif [email protected]

تم بحمد هللا