44
Abdullatif Tarakji [email protected] Create a form ء النموذج إنشاBuilding forms by using the Form wizard Creating forms in Layout view Creating forms in Design view Creating subforms Setting form properties Saving and deleting forms Creating views in an Access web app النموذج معالجستخداملنماذج باء ا بنا طريقة عرض التخطيطلنماذج فيء ا إنشايم طريقة عرض التصملنماذج فيء ا إنشا إنشاء نموذج فرعيئص النموذجد خصا إعدالنماذجظ و حذف ا حفيس ويب تطبيق أكسء العروض في إنشا

Lesson14 Create Forms

Embed Size (px)

Citation preview

Page 1: Lesson14 Create Forms

Abdullatif [email protected]

Create a form إنشاء النموذج

• Building forms by using the Form wizard

• Creating forms in Layout view

• Creating forms in Design view

• Creating subforms

• Setting form properties

• Saving and deleting forms

• Creating views in an Access web app

بناء النماذج باستخدام معالج النموذج•

إنشاء النماذج في طريقة عرض التخطيط•

إنشاء النماذج في طريقة عرض التصميم•

إنشاء نموذج فرعي•

إعداد خصائص النموذج•

حفظ و حذف النماذج•

إنشاء العروض في تطبيق أكسيس ويب•

Page 2: Lesson14 Create Forms

Abdullatif [email protected] Create a form

إنشاء النموذج• Access can create a fully functioning form in a single

step, or you can start with a blank form and then place and define each element of a form yourself. Access also provides tools for creating forms that use a specific form layout, including a navigation form.

• You work with several elements in forms. Forms use controls to display data (a text box or a list box, for example), to identify information (label controls), to aid navigation (hyperlinks and button controls), and to organize and emphasize aspects of a form’s layout (line and rectangle controls). Both a form and its controls use properties to define their data source and to define their size and position, their format, and other aspects of their appearance and behavior.

• Most of a form’s data controls are displayed in the form’s Detail section. A form also includes a Header section for titles, logos, and labels, and a Footer section that you can use to display calculated fields, for example.

احدة، إنشاء نموذج يعمل بشكل كامل في خطوة وبرنامج األكسيس يمكنه •

يمكنك البدء مع نموذج فارغ ومن ثم وضع وتحديد كل عنصر منأو

لنماذج التي أيضا أدوات إلنشاء ااألكسيس يوفر . العناصر تشكلها بنفسك

.نموذج التنقل، بما في ذلك موذج محددتستخدم تخطيط ن

النماذج تستخدم عناصر التحكم. مع عدة عناصر في النماذجتعمل •

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

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

ج النموذعلى جوانب تخطيط ولتنظيم وتأكيد ، (عنصر تحكم الزر

م كالهما النماذج و عناصر التحك(. المستطيلو عناصر تحكم الخط )

جمها خصائص لتحديد مصدر البيانات الخاصة بهم وتحديد حتستخدم

.مظهرها و وظائفهامن جوانب وغيرها ، وموقعها، وتنسيقها

. للنموذجل التفصيمقطع معظم عناصر تحكم بيانات النموذج تُعرض في •

، والشعارات والملصقاتللعناوين النموذج أيضا قسم رأس و يشمل

استخدامها لعرض الحقول المحسوبة، مكنك تذييل التي توقسم

.سبيل المثالعلى

Page 3: Lesson14 Create Forms

Abdullatif [email protected]

• When you use a wizard to create a form, the wizard sets most properties to default values. You can adjust these settings by using the form’s property sheet and by using tools on three form-related tabs on the ribbon: the Design tab, the Arrange tab, and the Format tab.

• Access displays these tabs when you create or modify a form in Layout view or Design view. In Layout view, Access displays the form’s data while you work on the form, which lets you resize the form’s controls (a text box, for example) to fit the data. Layout view also provides additional visual guidance about how the final form will appear. For example, Access displays formatting and color schemes as you design the form.

• In Design view, live data isn’t displayed as you create the form, but Design view often provides a clearer definition of the form’s structure, because each section of a form—the Header, Detail, and Footer sections—is labeled. Design view also offers more types of form controls and access to form properties (such as the Default View property) that aren’t available in Layout view.

لى إالخصائص المعالج معظم يعين عند استخدام المعالج إلنشاء نموذج، •

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

نموذج بالالنموذج وباستخدام األدوات على ثالث عالمات تبويب المتعلقة

عالمة التبويب تصميم، عالمة التبويب ترتيب، : على الشريط

.التبويب تنسيقوعالمة

لنموذج التبويب هذه عند إنشاء أو تعديل ايعرض برنامج األكسيس عالمات •

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

مكنك تُ النموذج أثناء العمل على النموذج، والتي األكسيس بيانات يعرض

ل مربع نص، على سبي)من تغيير حجم عناصر التحكم على النموذج

افي دليل مرئي إضيوفر عرض تخطيط أيضا . الحتواء البيانات( المثال

س أكسيعلى سبيل المثال، يعرض . حول كيفية ظهور الشكل النهائي

. التنسيق واللون كما تقوم بتصميم النموذجمخططات

شاء إنالبيانات مباشرة مثل طريقة عرض التصميم، ال يتم عرض في •

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

، الرأسمقاطعالمسماة هيكل النموذج، ألن كل قسم من النموذج و عن

اع من أنوكما يوفر طريقة عرض التصميم أكثر . و التذييل، التفصيل

عناصر تحكم النموذج والوصول خصائص النموذج.طيطالتي ال تتوفر في عرض تخ( خصائص العرض االفتراضيمثل )

Page 4: Lesson14 Create Forms

Abdullatif [email protected] Building forms by using the Form wizard

بناء النماذج باستخدام معالج النموذج• The fastest way to create a form is to select a table or a

query in the Navigation pane and then click Form in the Forms group on the Create tab. Access creates a form that includes all the fields in the table or query (which serves as the form’s record source) and displays the form in Layout view.

• You can use a form you create by using the Form command to work with a single record at a time. Display the form in Form view, or start modifying the form in Layout view or Design view to add other controls, change formatting, and define features.

• You can build a form almost as quickly and gain options for selecting fields and a form layout by using the Form wizard. The Form wizard uses the table or query selected in the Navigation pane as the default choice for the form’s record source. On the wizard’s first page, you can choose a different object or add fields from additional tables or queries.

• The Form wizard offers four layout options: Columnar, Tabular, Datasheet, and Justified. When you select a layout, the wizard shows a preview of how the form will appear.

• On the wizard’s final page, Access assigns a default name to the form and prompts you to either open the form to work with data or open the form in Design view to modify it.

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

ألكسيس ينشئ ا. التبويب إنشاءفي عالمة فوق نموذج في مجموعة نماذج النقر

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

.ويعرض النموذج في طريقة العرض تخطيط( السجل للنموذج

جل باستخدام األمر نموذج للعمل مع سبإنشائه يمكنك استخدام نموذج تقوم •

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

ضافة تعديل النموذج في طريقة العرض تخطيط أو طريقة عرض التصميم إل

.، وتغيير التنسيق، وتحديد الميزاتأخرىعناصر التحكم

ل، و تحقيق خيارات الختيار الحقويمكنك بناء النموذج بنفس السرعة •

أو دول معالج النموذج يستخدم الج. باستخدام معالج النموذجو تخطيط النموذج

. وذجسجل النملمصدر افتراضي االستعالم المحدد في جزء التنقل كخيار

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

.جداول أو استعالمات إضافية

ات، عمودي، جدولي، ورقة البيان: خيارات تخطيطمعالج النموذج يوفر أربع •

.نموذجالمعالج معاينة كيفية ظهور اليظهر ، اختيار التخطيطعند . ومضبوطة

لنموذج برنامج األكسيس يحدد االسم االفتراضي ل, في آخر صفحة من المعالج•

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

Page 5: Lesson14 Create Forms

Abdullatif [email protected]

معالج النموذج يعرض معاينة

لكل خيار تخطيط

Page 6: Lesson14 Create Forms

Abdullatif [email protected]

To create a quick form 1. In the Navigation pane, select the table or query

you want to use as the form’s record source. 2. On the Create tab, in the Forms group, click Form.

إلنشاء نموذج سريع

ه في جزء التنقل، حدد الجدول أو االستعالم الذي تريد استخدام1.

.كمصدر سجل للنموذج

.وذجضمن عالمة التبويب إنشاء، في المجموعة نماذج، انقر فوق نم2.

Page 7: Lesson14 Create Forms

Abdullatif [email protected]

To create a form by using the Form wizard

1. On the Create tab, in the Forms group, click Form Wizard.

2. On the first page of the Form wizard, select the table or query you want to use as the form’s record source.

3. Move the fields you want to include on the form from the Available Fields list to the Selected Fields list, and then click Next.

4. Choose a layout for the form. Use the previews that the wizard displays when you select a layout option to view the form’s general appearance.

5. Enter a name for the form (or accept the default name), and then specify whether you want to open the form to view and update data, or open the form in Design view to modify the form. Click Finish to create the form.

معالج النموذجنموذج باستخدام إلنشاء

ضمن عالمة التبويب إنشاء، في المجموعة نماذج، 1.

.فوق معالج النموذجانقر

على الصفحة األولى من المعالج نموذج، حدد الجدول أو 2.

.االستعالم الذي تريد استخدامه كمصدر سجل للنموذج

الحقول التي تريد إدراجها على النموذج من قائمة انقل 3.

الحقول المتوفرة إلى قائمة الحقول المحددة،

.انقر فوق التاليثم

التي يعرضهااستخدام معاينات . اختيار تخطيط للنموذج4.

.ذجالمعالج عند تحديد خيار تخطيط لعرض المظهر العام للنمو

، ومن ثم (أو قبول االسم االفتراضي)أدخل اسما للنموذج 5.

يانات، تحديد ما إذا كنت تريد فتح النموذج لعرض وتحديث الب

. ذجأو فتح النموذج في طريقة العرض تصميم لتعديل النمو

.انقر فوق إنهاء إلنشاء النموذج

Page 8: Lesson14 Create Forms

Abdullatif [email protected]

123

45

Page 9: Lesson14 Create Forms

Abdullatif [email protected] Creating forms in Layout view

إنشاء النماذج في عرض التخطيط• If you want to build a form from scratch in Layout

view, click Blank Form in the Forms group on the Create tab. Access displays a form window and the field list.

• In the field list, if the database’s tables aren’t listed, click Show All Tables. Click the plus sign (+) beside the table you want to use as the form’s record source to display a list of the table’s fields. You can then drag a field from the field list (or double-click the field) to place it on the form. After you add a field from a specific table to the form, Access updates the field list, dividing it into three areas:

• Fields Available For This View Shows the fields from the table you selected as the record source.

• Fields Available In Related Tables Lists the tables related to the table that’s serving as the record source.

• Fields Available In Other Tables Lists the other tables in the database. (If all the tables in the database are related to the table you are using, Access does not display this group.)

إذا كنت ترغب في بناء نموذج من الصفر في عرض تخطيط، •

.التبويب إنشاءمن عالمة فوق نموذج فارغ في مجموعة نماذج انقر

.النموذج وقائمة الحقوليعرض أكسيس إطار

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

د بجانب الجدول الذي تري)+( انقر فوق عالمة الجمع . كافة الجداول

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

وق أو انقر نقرا مزدوجا ف)يمكنك بعد ذلك سحب حقل من قائمة الحقول

موذج بعد إضافة حقل من جدول معين إلى الن. لوضعه في النموذج( حقل

:إلى ثالث مناطقبتقسيمها الحقول، األكسيس يحدث قائمة

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

.كمصدر السجل

إلى الجداول المرتبطةتسرد الحقول المتوفرة في الجداول المرتبطة •

.الجدول الذي هو العامل بوصفه مصدر السجل

الحقول المتوفرة في جداول أخرى لسرد الجداول األخرى في قاعدة •

الجدول ترتبط إلىكافة الجداول في قاعدة البيانات كانت إذا . )البيانات

.(يعرض هذه المجموعةاألكسيس ال الذي تستخدمه،

Page 10: Lesson14 Create Forms

Abdullatif [email protected]

Page 11: Lesson14 Create Forms

Abdullatif [email protected]

• By default, the fields you add to a form in Layout view are stacked in columns. Each field’s label appears in a column on the left, and the field’s input control (a text box or a list box, for example) appears on the right. When you drag a field from the field list to the form, Access displays an orange bar at the bottom of the stack. To add a column, right-click a control on the form, click Insert, and then click Insert Left or Insert Right. To insert a row, right-click a control, click Insert, and then click Insert Above or Insert Below.

• The field list includes links that you can use to change which fields it displays and to work with data. Click Show Only Fields In The Current Record Source at the top of the field list to display only those fields you have added to the form. Click Edit Table (which appears to the right of a table’s name) to open a table in Datasheet view, where you can view, insert, or update data while you are designing the form.

خطيط تنموذج في عرض الحقول التي تضيفها إلى افتراضيا، •

لى عكل تسمية حقل تظهر في العمود . تكون مكدسة في أعمدة

بع مربع نص أو مر)عنصر تحكم إدخال الحقل اليسار، ويظهر

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

ر إلضافة عمود انقر بزر الماوس األيمن فوق عنص. المجموعة

سار تحكم في النموذج، انقر فوق إدراج، ثم انقر فوق إدراج الي

إلدراج صف انقر بزر الماوس األيمن فوق. لليمينأو إدراج

عنصر تحكم، انقر فوق إدراج، ثم انقر فوق إدراج فوق أو

.أسفلإدراج

يير وتشمل قائمة الحقول الروابط التي يمكنك استخدامها لتغ•

ر انقر فوق إظها. الحقول التي يعرضها والعمل مع البيانات

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

افتها قائمة الحقول إلى عرض فقط تلك الحقول التي قمت بإض

ين الذي يظهر على يم)انقر فوق تحرير الجدول . إلى النموذج

ت، لفتح الجدول في طريقة عرض ورقة البيانا( اسم للجدول

نت حيث يمكنك عرض، إدراج، أو تحديث البيانات في حين ك

.تقوم بتصميم النموذج

Page 12: Lesson14 Create Forms

Abdullatif [email protected]

• Use the Property Sheet command in the Tools group on the Form Layout Tools Design tool tab to view values for the form’s properties and properties for the controls included on the form. (When you display the property sheet, Access hides the field list. Click Add Existing Fields in the Tools group to open the field list again.)

• To view the form’s Record Source property, for example, click Property Sheet, and then select Form in the Selection Type list at the top of the property sheet. On the property sheet’s Data tab, click in the Record Source box, and then press Shift+F2 to open the Zoom dialog box. Access uses a SELECT statement (an element of the Structured Query Language, or SQL) to identify the table and the fields you’ve added to the form.

من في مجموعة أدوات الخصائص استخدام األمر ورقة •

نموذج عالمة التبويب أدوات تصميم أداة لعرضتخطيط

منة مضقيم خصائص النموذج وخصائص عناصر التحكم

األكسيسعند عرض صفحة الخصائص، . )النموذجفي

ودة في انقر فوق إضافة الحقول الموج. الحقوليخفي قائمة

.(مجموعة أدوات لفتح قائمة الحقول مرة أخرى

مصدر السجل للنموذج، خصائص لعرض •

م ومن ثالخصائص، سبيل المثال، انقر فوق ورقة على

لوي تحديد نموذج في القائمة نوع االختيار في الجزء الع

رقة عالمة التبويب بيانات وفي . من صفحة الخصائص

غط ثم اضالسجالت انقر فوق المربع مصدر الخصائص، SHIFT+F2 مربع الحوار التكبيرلفتح.

SELECTاألكسيس عبارة يستخدم (SQLأو االستعالمات البنيوية، من عناصر لغة عنصر )

. نموذجلتحديد الجدول والحقول التي قمت بإضافتها إلى ال

Page 13: Lesson14 Create Forms

Abdullatif [email protected]

Page 14: Lesson14 Create Forms

Abdullatif [email protected]

• When you add a field to a form, Access uses the field’s data type to determine which type of form control to associate with the field. In many cases (for text and number fields, for example), Access creates a text box control and an associated label. For lookup fields, Access creates a combo box control, and for Yes/No fields, Access inserts a check box control. You can add other types of controls—a command button, for example, or a label control—by using the options in the Controls group on the Design tool tab. Select the type of control you want to add, and then click in the form where you want the control to appear.

• You can use the commands in the Header/Footer group on the Design tool tab to add a title, logo, or date and time to a form. The Title command adds a label you can update to name the form. Click Logo to open the Insert Picture dialog box, where you can select an image file for a logo you want to include. The Date And Time command opens a dialog box in which you can select the date and time format you want to display on the form.

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

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

، (على سبيل المثالالحقول، للنص وعدد من )من الحاالت . هاعنصر تحكم مربع النص والتسمية المرتبطة بينشئ األكسيس

والسرد، تحرير عنصر تحكم مربع ينشئ األكسيسالبحث، لحقول

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

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

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

ر نوع عنصاختر . عناصر التحكم في عالمة التبويب أداة تصميم

ظهار إالنموذج حيث تريد فوق التحكم الذي تريد إضافته، ثم انقر

.مكان عنصر التحكم

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

. جتصميم أداة إلضافة عنوان أو شعار أو التاريخ والوقت إلى نموذ

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

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

. إدراجهالذي تريد للشعار الصورة

يق تنسمربع حوار حيث يمكنك تحديد يفتح التاريخ والوقت أمر

.تريد عرضه في النموذجالذي والوقت التاريخ

Page 15: Lesson14 Create Forms

Abdullatif [email protected]

Page 16: Lesson14 Create Forms

Abdullatif [email protected] To create a form in Layout view

إلنشاء نموذج في عرض التخطيط1. On the Create tab, in the Forms group, click

Blank Form.

2. In the field list, if no tables are shown, click Show All Tables, and then click the plus (+) sign beside the table you want to use as the form’s record source. If the field list is not displayed, click Add Existing Fields on the Form Layout Tools Design tool tab.

3. In the field list, drag the fields you want to include on the form and place them in the form window. You can align and reposition fields after you place them.

4. To add a logo, title, or date and time to the form, use the commands in the Header/Footer group on the Design tool tab.

5. On the Design tool tab, click Property Sheet.

6. In the property sheet, specify properties for the form and the form’s controls.

.من مجموعة نماذج اضغط فوق نموذج فارغ, في تبويب انشاء1.

اضغط على إظهار , اذا لم تكن الجداول ظاهرة, من قائمة الحقل2.

جانب الجدول الذي )+( ثم اضغط على إشارة , كافة الجداول

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

اضغط إضافة حقول موجودة من تبويب أداة التصميم , ظاهرة

.أدوات تخطيط النموذج

نموذج اسحب الحقول التي تريد تضمينها في ال, من قائمة الحقل3.

حقول يمكنك محاذاة و تغيير موقع ال. و ضعهم في نافذة النموذج

.بعد وضعهم

استخدم , أو تاريخ و وقت للنموذج, عنوان, إلضافة شعار4.

.األوامر في مجموعة رأس و تذييل في تبويب أداة التصميم

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

حدد الخصاص للنموذج , من ورقة الخصائص6.

.و عناصر تحكم النموذج

Page 17: Lesson14 Create Forms

Abdullatif [email protected]

Page 18: Lesson14 Create Forms

Abdullatif [email protected]

Page 19: Lesson14 Create Forms

Abdullatif [email protected]

Page 20: Lesson14 Create Forms

Abdullatif [email protected] Creating forms in Design view

إنشاء نموذج في طريقة عرض التصميم• The Form Design command in the Create tab’s

Forms group opens a blank form window in Design view. The tools and methods you use to create a form in Design view are similar to those you work with in Layout view. On the Form Design Tools Design tool tab, click Add Existing Fields in the Tools group to open the field list. You can then expand the list of fields for the table you want to use as the form’s record source and drag fields to place them on the form. When you add the first field to the form, Access updates the fields displayed in the field list as it does in Layout view.

• As you add fields to the form, Access starts defining the form’s Record Source property. (You can find an example of the expression Access uses to create a form’s record source in the previous section.) To view or modify the Record Source and other properties, click Property Sheet in the Tools group on the Design tool tab. From the Selection Type list, select the form, control, or form section (Detail, for example) whose properties you want to update or view.

تح يفالتبويب إنشاء من عالمة في مجموعة نماذج النموذج تصميم أمر •

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

لتي كنت تستخدم إلنشاء نموذج في طريقة عرض التصميم مماثلة لتلك ا

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

ح انقر فوق إضافة الحقول الموجودة في مجموعة أدوات لفتالنموذج،

تريد يمكنك بعد ذلك توسيع قائمة الحقول للجدول الذي. قائمة الحقول

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

ضة المعروأكسيس يحدث الحقول عند إضافة الحقل األول إلى النموذج

.في قائمة الحقول كما هو الحال في عرض تخطيط

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

إلنشاء ايجاد مثال التعبير يستخدمه األكسيسيمكنك . )السجل للنموذج

لعرض أو تعديل مصدر.( في القسم السابقسجل النموذج مصدر

في الخصائص انقر فوق ورقة الخصائص، السجالت وغيرها من

حديد، من القائمة نوع الت. مجموعة أدوات في عالمة التبويب أداة تصميم

النموذج قسم أو نموذج، عناصر التحكم، حدد

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

Page 21: Lesson14 Create Forms

Abdullatif [email protected]

Page 22: Lesson14 Create Forms

Abdullatif [email protected]

Page 23: Lesson14 Create Forms

Abdullatif [email protected]

To align and position fields when you work in Design view, use the grid marks and the ruler. Access highlights the ruler when you drag a control and shows the control’s position relative to other controls. By right-clicking a control, you can work with the options on the Align, Size, and Position menus to adjust the layout of the form. For example, to align a group of labels, select the group by holding down the Ctrl key and clicking each label, right-click the selection, point to Align, and then click the Left or Right option.

العمل في طريقة عرضو وضع الحقول عند لمحاذاة

. الشبكة والمسطرةالتصميم، واستخدام عالمات

أكسيس يميز المسطرة عند سحب عنصر التحكم

ر الذي له عالقة بعناصالتحكم ويظهر موقع عنصر

من عن طريق النقر بزر الماوس األي. التحكم األخرى

ي ، يمكنك العمل مع الخيارات فعنصر التحكمعلى

تخطيط و الموضع لضبط ، الحجم، قوائم المحاذاة

على سبيل المثال، لمحاذاة مجموعة من . النموذج

مرار مجموعة عن طريق الضغط باستاختر التسميات،

ماوس يمينتسمية، على كل والنقر ctrlعلى مفتاح

ار بزو اليسفوق التحديد، وأشر إلى محاذاة، ثم انقر

.الخيار الصحيحفوق

Page 24: Lesson14 Create Forms

Abdullatif [email protected]

Page 25: Lesson14 Create Forms

Abdullatif [email protected]

• When you first create a form in Design view, the form contains only the Detail section. You locate most of the form’s controls in its Detail section, but a form can also include a Header and Footer section. Use the Header section to display the form’s title, to include a logo, or to show the date and time, for example. You might use the Footer section to show a Totals field that is calculated from the values of other fields on the form.

• To insert the Header and Footer sections, right-click in the Detail section, and then click Form Header/Footer. You can also use the commands in the Header/Footer group on the Design tool tab to add the Header and Footer sections and insert a form element. The Title command adds a label to the Header section. Click Logo to open the Insert Picture dialog box, in which you can select the image file for a logo you want to include. The Date And Time command opens a dialog box that you can use to select a format in which to display the date and time. Access adds the date, time, or both to the form’s Header section.

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

مقطع النموذج فيعناصر تحكم معظم تضع . فقط مقطع التفاصيل

. يلقسم رأس وتذيأيضا يشمل أن لكن النموذج يمكن التفاصيل،

، أو إلظهار شعارلعرض عنوان النموذج، مقطع الرأس استخدام

حقل رض لعقسم تذييل تستخدم . التاريخ والوقت، على سبيل المثال

.المجاميع التي يتم حسابها من قيم الحقول األخرى في النموذج

انقر بزر الماوس األيمن في مقطع وتذييل، رأس أقسام إلدراج •

ا يمكنك أيض. تذييل النموذج/فوق رأسالتفاصيل، ومن ثم انقر

أداة التبويب تذييل عالمة /رأساستخدام األوامر في المجموعة

. عنصر النموذجوإدراج إلضافة أقسام رأس وتذييل التصميم

مربع ح انقر شعار لفت. أمر العنوان يضيف التسمية إلى مقطع الرأس

ي الذللشعار حيث يمكنك اختيار ملف الصورة حوار إدراج صورة،

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

األكسيس . تنسيق التاريخ والوقت الذي سيتم عرضهاستخدامها لتحديد

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

Page 26: Lesson14 Create Forms

Abdullatif [email protected]

Page 27: Lesson14 Create Forms

Abdullatif [email protected] To create a form in Design view

إلنشاء نموذج في عرض التصميم1. On the Create tab, in the Forms group,

click Form Design.

2. To display the field list, click Add Existing Fields in the Tools group on the Form Design Tools Design tool tab.

3. In the field list, click Show All Tables (if no tables are shown), and then click the plus (+) sign beside the table you want to use as the form’s record source.

4. In the field list, drag the fields you want to include on the form and place them in the form window. You can align and reposition fields after you place them.

5. To add a logo, title, or date and time to the form, use the commands in the Header/Footer group.

6. On the Design tool tab, click Property Sheet.

7. In the property sheet, specify properties for the form and the form’s controls.

.اضغط تصميم النموذج, من مجموعة النماذج, من تبويب إنشاء1.

اضغط على الحقول الموجودة من , لعرض قائمة الحقول2.

.مجموعة أدوات من تبويب أداة التصميم أدوات تصميم النموذج

اذا لم تكن )اضغط إظهار كافة الجداول , في قائمة الحقول3.

جانب الجدول الذي )+( ثم اضغط على إشارة , (الجداول ظاهرة

.تريد استخدامه كمصدر سجل النموذج

النموذج اسحب الحقول التي تريد تضمينها في, في قائمة الحقول4.

يمكنك محاذاة و إعادة وضع . و وضعهم في نافذة النموذج

.الحقول بعد وضعهم

استخدم, و تاريخ و وقت الى النموذج, عنوان, إلضافة شعار5.

.األوامر في مجموعة رأس و تذييل

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

حدد الخصائص للنموذج و عناصر , في ورقة الخصائص7..تحكم النموذج

Page 28: Lesson14 Create Forms

Abdullatif [email protected]

Page 29: Lesson14 Create Forms

Abdullatif [email protected]

Page 30: Lesson14 Create Forms

Abdullatif [email protected]

Page 31: Lesson14 Create Forms

Abdullatif [email protected]

Page 32: Lesson14 Create Forms

Abdullatif [email protected] Creating subforms

إنشاء نموذج فرعيBy creating a subform that you display within a main form, you can view data from related tables—for example, you can use a subform to display detailed budget records when the summary budget amount is displayed on the main form. You can define a main form and a subform when you use the Form wizard, but if you want to add a subform to a form you have already created, you can use the SubFormwizard, which appears when you insert a subform/subreport control on a form.

النموذجداخل و الذي سيعرض نموذج فرعي إلنشاء

مع التي لها صلة، يمكنك عرض البيانات الرئيسي

سبيل المثال، يمكنك استخدام نموذجالجداول على

عرضالميزانية مفصلة عند فرعي لعرض سجالت

. سيفي النموذج الرئيملخص الميزانية التي تعرض

ستخدام عند اتعريف النموذج الرئيسي و الفرعي يمكنك

وذج ، ولكن إذا كنت ترغب في إضافة نمالنموذجمعالج

مكنك يالنموذج الذي قمت بالفعل بإنشائه، فرعي إلى

اج استخدام معالج النموذج الفرعي الذي يظهر عند إدر

.النموذجتقرير فرعي على / عنصر تحكم نموذج

Page 33: Lesson14 Create Forms

Abdullatif [email protected]

Page 34: Lesson14 Create Forms

Abdullatif [email protected]

• You can base a subform on a table, query, or form you’ve already defined. If you click the option Use An Existing Form, select the form in the list, click Next, enter a name for the subform, and then click Finish. When you select the Use Existing Tables And Queries option, the wizard displays a page on which you choose fields from one or more tables to include on the subform. On the wizard’s next page, you define which field links the subform and the main form. If the table or query you selected has a relationship to the main form’s record source, Access shows a list of fields you can choose from. If Access cannot determine the linking fields, it selects the Define My Own option on this page. You then need to select the linking fields you want to use.

• If you want to fine-tune the work the wizard performed, select the subform control, open the property sheet, and then adjust the Height and Width properties, for example, reposition the control by setting the Top and Left properties, or enter a message in the Status Bar Text property (on the property sheet’s Other tab) to describe the purpose of the subform.

. مسبقافه بتعريقمت لنموذج أو استعالم أو النموذج الفرعي لجدول يمكنك إسناد •

مة، إذا قمت بالنقر فوق الخيار استخدام نموذج موجود، حدد النموذج في القائ

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

لتي يعرض المعالج الصفحة اواالستعالمات، الجداول الموجودة خيار استخدام

ي ف. في النموذج الفرعيلتضمينها اخترت الحقول من جدول واحد أو أكثر

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

إذا كان الجدول أو االستعالم الذي حددته لديه عالقة . والنموذج الرئيسي

النموذج الرئيسي، سجل لمصدر

لم األكسيسإذا . منهااالختيار يمكنك قائمة الحقول التي األكسيس يعرض

تعريف من به للالخيار الخاص يمكننا اختيار ، فإنه حقول الربطتحديد يستطع

.دامهااستخالمرتبطة التي تريد ثم تحتاج إلى تحديد الحقول . الصفحةهذه

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

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

تحديد خصائصمن خالل وضع عناصر التحكم على سبيل المثال، إعادة

مة على عال)الحالة خاصية نص شريط أو إدخال رسالة في األعلى واليسار،

.لوصف الغرض من النموذج الفرعي( األخرىالخصائص التبويب ورقة

Page 35: Lesson14 Create Forms

Abdullatif [email protected]

موذج يمكنك إسناد النموذج الفرعي لجدول أو استعالم أو لن

ستخدام إذا قمت بالنقر فوق الخيار ا. قمت بتعريفه مسبقا

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

Page 36: Lesson14 Create Forms

Abdullatif [email protected] Setting form properties

إعدادات خصائص النموذجA form and its sections (Detail, Header, and Footer) have numerous properties you can set and modify in the property sheet. With the property sheet open, select Detail, Form Header, or Form Footer from the Selection Type list to view and set properties for that section. Select Form to work with the properties for the form itself. For a form, you might work with one or more of the following properties on the property sheet’s Format tab.

يها لد( والتذييل، الرأس، التفصيل)النموذج و أقسامه

فيتعيينها وتعديلها العديد من الخصائص يمكنك

. الخصائصصفحة

س رأ، التفصيل، اختر الخصائص المفتوحةورقة مع

رض نوع التحديد لعقائمة تذييل النموذج من النموذج أو

. لهذا القسمالخصائص وتعيين

، جللنموذ. نموذج للعمل مع خصائص النموذج نفسهحدد

على مع واحد أو أكثر من الخصائص التاليةيمكنك العمل

.الخصائصعالمة التبويب تنسيق ورقة

Page 37: Lesson14 Create Forms

Abdullatif [email protected]

• Default View Use the Default View property to specify the view in which Access opens the form when you double-click the form in the Navigation pane or click Form View on the View menu. The options are Datasheet, Single Form (which displays a single record on the form), and Continuous Forms (which displays multiple records).

• Allow Form View, Allow Datasheet View, Allow Layout View Use these properties to control the views in which you can display the form.

• Navigation Buttons, Navigation Caption, Scroll Bars, Record Selectors Set the Navigation buttons property to No if the record navigation buttons aren’t required on the form. If you do show the navigation buttons, you can enter text in the Navigation Caption property to replace the default caption Record. The Scroll Bars property gives you options for showing only the vertical scroll bar, only the horizontal scroll bar, both, or neither. The Record Selectors property controls whether the record selector is displayed on the form.

• Close Button, Min Max Buttons Set these properties to Yes or No depending on whether you want the form to include the Close, Minimize, or Maximize buttons in the upper-right corner of the form.

قة استخدم خاصية العرض االفتراضي لتحديد طريالعرض االفتراضي•

فوق دوجاً عليه نقراً مزعند النقر يفتح بها األكسيس النموذج التي العرض

. النموذج في جزء التنقل أو انقر فوق عرض النموذج في القائمة عرض

في الذي يعرض سجل واحد )مفرد نموذج هي ورقة البيانات، الخيارات

(.الذي يعرض سجالت متعددة)مستمرة ونماذج ، (النموذج

بعرضورقة البيانات، السماح بعرض النموذج، السماح بعرض السماح •

بها نك التي يمكطرق العرض استخدام هذه الخصائص للتحكم في التخطيط

.النموذجعرض

سجل محددات الأشرطة التمرير، للتنقل، أزرار التنقل، تسمية توضيحية •

ل بين التنقكنت ال تريد عرض أزرار إذا التنقل لـ بال أزرار تعيين خاصية

أزرار التنقل، يمكنكأردت عرضها قم بعرض إذا . السجالت في النموذج

سمية الستبدال التللتنقل في خاصية التسمية التوضيحية نص إدخال

ارات يعطيك خيخاصية أشرطة التمرير . لسجلالتوضيحية االفتراضية

و عرض ألعرض فقط شريط التمرير العمودي، فقط شريط التمرير األفقي،

. بالأو الشريطين،

.عرض محدد السجل في النموذجخاصية محدد السجالت يتم

أو ال تعيين هذه الخصائص إلى نعمزر االغالق، زرا التكبير و التصغير•

كبير اعتمادا على ما إذا كنت ترغب في النموذج لتشمل إغالق، تصغير أو ت

.أزرار في الزاوية العلوية اليمنى من النموذج

Page 38: Lesson14 Create Forms

Abdullatif [email protected]

On the property sheet’s Data tab, you can view and set properties that affect how a user works with the form’s data.

• Data Entry Set this property to Yes (the default setting is No) if you want Access to display a blank record when you open the form.

• Allow Additions, Allow Deletions, Allow Edits These properties control whether a user can use this form to insert records, delete records, and change the values in form controls.

• Allow Filters Set this property to No if you don’t want users to be able to filter the records shown in this form.

عرض التبويب بيانات صفحة الخصائص، يمكنكفي عالمة

خدم مع وتعيين خصائص التي تؤثر على كيفية عمل المست

.البيانات للنموذج

اإلعداد )إلى نعم تعيين هذه الخاصية بيانات إدخال•

إذا كنت تريد الوصول لعرض سجل( االفتراضي هو ال

.فتح النموذجعند ( سجل جديد)فارغ

ير ، السماح بالتحربالحذف، السماح باإلضافاتالسماح •

إذا كان يمكن للمستخدمفي ما الخصائص تتحكم هذه

استخدام هذا النموذج إلدراج سجالت، وحذف السجالت،

.وتغيير القيم في عناصر تحكم النموذج

نت ال هذه الخاصية إلى ال إذا كتعيين بالتصفية السماح•

لسجالت على تصفية اليكونوا قادرين تريد للمستخدمين

.في هذا النموذجالمعروضة

Page 39: Lesson14 Create Forms

Abdullatif [email protected]

Page 40: Lesson14 Create Forms

Abdullatif [email protected] Saving and deleting forms

حفظ و حذف النماذج• Any form you create by using one of the wizards is

automatically saved by Access. When you design a form from scratch in Layout view or Design view, Access assigns a default name to the form (Form1, for example). To name and save the form, click Save on the Quick Access Toolbar or use the Save command in the Backstage view.

• You can use options on the Save As page in the Backstage view to create a copy of a form as a new database object (click Save Object As) or as a PDF or an XPS file. The Save Object As command can be helpful if you want to experiment with a form that’s already designed (by adding additional controls or changing formats, for example) and don’t want to risk inadvertent changes to the original form.

• To delete a form from a database, right-click the form in the Navigation pane, and then click Delete.

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

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

شريط أدوات الوصول السريع أومن النموذج، انقر فوق حفظ

.قائمة ملفاستخدام األمر حفظ في

إلنشاء قائمة ملفباسم الصفحة في خيارات حفظ يمكنك استخدام •

كائن انقر فوق حفظ)قاعدة بيانات جديدة ككائن نسخة من نموذج

أن يمكن كائن أمر حفظ .XPSملفأو PDFشكلأو في ( باسم

الفعل بنموذج مصممة تكون مفيدة إذا كنت تريد لهذه التجربة مع

، على عن طريق إضافة عناصر تحكم إضافية أو تغيير األشكال)

ودة إلى غير مقصبتغييرات ، وال يريدون المخاطرة (سبيل المثال

.النموذج األصلي

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

Page 41: Lesson14 Create Forms

Abdullatif [email protected]

To save a form لحفظ نموذج-

• On the Quick Access Toolbar, click Save. .اضغط حفظ, من شريط األدوات السريع لألكسيس

• In the Save As dialog box, enter a name for the form, and then click OK. .ثم اضغط موافق, أدخل اسم للنموذج, من صندوق حوار حفظ باسم

To delete a form لحذف نموذج-

• In the Navigation pane, right-click the form, and then click Delete. .ثم اضغط حذف, اضغط كليك يمين على النموذج, من نافذة جزء التنقل

Page 42: Lesson14 Create Forms

Abdullatif [email protected] Creating views in an Access web app

إنشاء العروض في تطبيق أكسيس ويب

• In an Access web app, views serve the purpose of forms in a desktop database. Access provides fewer tools for designing and formatting a view, but the steps you take to create a view are comparable to those required to create a form.

• To work with the built-in views or create a view of your own, open an Access web app for customization in Access. (If you open the web app in your browser, click the Settings button at the right side of the browser window, and then click Customize In Access.) On the Home tab, click View, which displays a window where you name the view, specify the view type, and select the record source. You can choose one of four options for the view type: List Details, Datasheet, Summary, or Blank. List Details and Datasheet are the standard views that Access provides for each table provided in a web app template. Both of these view types include all the fields in the record source by default. In a summary view, you can group and summarize data by different values. You use the Blank option to add specific fields and controls to a view.

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

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

رنة مع قابلة للمقاإلنشاء العرض ولكن الخطوات التي تتخذ العروض،

.تلك المطلوبة إلنشاء نموذج

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

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

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

في .(أكسيساأليمن من نافذة المتصفح، ثم انقر فوق تخصيص في

ض نافذة عالمة التبويب الصفحة الرئيسية، انقر فوق عرض، والذي يعر

نك يمك. وحدد مصدر السجلالعرض، طريقة العرض، تحديد نوع اسمها

قائمة تفاصيل، ورقة : اختيار واحد من أربعة خيارات لنوع عرض

عرض القائمة تفاصيل ورقة البيانات هي . البيانات، ملخص، أو فارغة

يق تطبفي قالب يؤمن جدول األكسيس يوفرها لكل القياسية التي

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

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

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

.العرضمحددة لطريقة تحكم

Page 43: Lesson14 Create Forms

Abdullatif [email protected]

After Access creates the view, click Edit to add fields and controls to the view. The number and types of controls you can add depend on the type of view you create. For example, the Datasheet view is compatible with only six controls—label, text box, combo box, check box, auto-complete, and multiline text box. When you start with a blank view, you can use these and several other controls, including image and hyperlink controls. Use the field list to add fields from the view’s record source and from other tables in the web app. You can apply font formatting to a control you add to a view, define a tooltip, and set properties such as Caption and Visible.

افة حقول بعد إنشاء األكسيس للعرض، انقر فوق تحرير إلض

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

ة العرض التحكم التي يمكنك إضافتها تعتمد على نوع طريق

لبيانات على سبيل المثال، عرض ورقة ا. التي تقوم بإنشائها

النص، التسمية، مربع-متوافق مع فقط ستة عناصر تحكم

متعدد مربع التحرير والسرد، اإلكمال التلقائي، ومربع نص

عند البدء بعرض فارغ، يمكنك استخدام هذه . األسطر

لك العناصر والعديد من عناصر التحكم األخرى، بما في ذ

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

الحقول إلضافة حقول من مصدر السجل وجهة نظر ومن

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

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

سمية العرض، وتحديد تلميحات، وتعيين خصائص مثل ت

.توضيحية ومرئية

Page 44: Lesson14 Create Forms

Abdullatif [email protected] To create a view in an Access web app

إلنشاء العرض في تطبيق أكسيس انترنت

1. Open the web app in Access.

2. On the Home tab, click View.

3. In the Add New View dialog box, enter the name of the view, select the view type, and then specify the record source.

4. Click Add New View.

5. Click Edit.

6. Use the field list and the options on the View Design tool tab to build and format the view.

.افتح تطبيق وب في األكسيس1.

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

أدخل اسم , من مربع حوار إضافة عرض جديد3.

.لو ثم حدد مصدر السج, اختر نوع العرض, للعرض

.اضغط إضافة عرض جديد4.

.اضغط تحرير5.

صميم استخدم قائمة الحقل و الخيارات من تبويب أداة ت6.

.العرض لبناء تنسيقات العرض