lesson9 create and modify fields

31
bdullatif Tarakji [email protected] Create and modify fields ل و ق ح ل لا يد ع تءو ا ش ن اAdding and deleting fields Working with field properties Adding validation rules to fields Changing field captions Changing field sizes Setting default values Properties group in datasheet view Field Validation group Changing field data types Using input masks ول ق ح ل ا ف و حد ة اف ض ا ل ق ح ل صا ئ صا خ ع م ل م ع ل ا ل ق ح ل ل حة ص ل ا ن. م ق ق ح2 ت ل واعد ا ق ة اف ض ا ل ق ح ل ا ات ي م س ن ر ي> ي ع ت ل ق ح ل ماA ج ح ر ي> ي ع ت ة ي ض را ي فلا ما ي ق لاد ا اعد ات ان يM ب ل ا ة ورف رض ع ي ف ص ئ صا خ وعة مA ج م ل ق ح ل ا حة ص. ن م ق ق ح2 ت ل ا وعة مA ج م ل ق ح ل ل ات ان يM ب ل واع ا ن را ي> ي ع ت ال لادحعا ا ن ق دام خ ت س ا

Upload: abdullatif-tarakji

Post on 11-Feb-2017

209 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Lesson9 Create and Modify Fields

Abdullatif [email protected] Create and modify fields

الحقول تعديل و إنشاءAdding and deleting fields

Working with field properties

Adding validation rules to fields

Changing field captions

Changing field sizes

Setting default values

Properties group in datasheet view

Field Validation group

Changing field data types

Using input masks

الحقول حذف و إضافةالحقل خصائص مع العمل

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

الحقل حجم تغييراالفتراضية القيم اعداد

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

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

Page 2: Lesson9 Create and Modify Fields

Abdullatif [email protected] and modify fields

الحقول تعديل و إنشاء• The beginning of this chapter described how to

work in Design view or Datasheet view to create tables. This section expands on how tables are defined by describing details about fields how you create them (and delete them), and how you work with field properties to fine-tune a table’s design. You examine how to set field sizes and captions, input masks, field validation rules, and default values, in addition to how to increment the value in a field automatically and how to change a field’s data type.

• You can accomplish most of the tasks described in this section with the table open in Design view or in Datasheet view.

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

تشرح التي الجداول تعريف كيفية على القسم هذا يوسع ) كنت ) وكيف ، وحذفها إنشائها كيفية الحقول حول التفاصيل

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

تلقائيا حقل في قيمة زيادة كيفية إلى باإلضافة االفتراضية،تغيير وكيفية

. حقل بيانات نوعالقسم • هذا في الموضحة المهام معظم إنجاز يمكنك

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

Page 3: Lesson9 Create and Modify Fields

Abdullatif [email protected] Adding and deleting fields

الحقول حذف و إضافة• In Design view, add a field by entering the field name

in the first blank row, or use the Insert Rows command in the Tools group (on the Table Tools Design tool tab) to add the field between two fields that are already defined. (A row is inserted above the selected row.) Use the Delete Rows command in the Tools group to remove a field from a table— this command is also available when you right-click a row and display the shortcut menu. If you delete a field that contains data, Access prompts you to confirm this action, warning that you will permanently delete the field and its data.

• When a table is open in Datasheet view, you add and delete fields by working with commands in the Add & Delete group on the Table Tools Fields tool tab. A field you insert appears to the right of the field selected in the table. The Add & Delete group provides options that correspond to Access data types.

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

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

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

, , الحدث هذا تأكيد رسالة يظهر األكسZيس برنامج بيانات على. البيانات مع الحقل هذا كامل بشكل تحذف سوف بأنك تحذير

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

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

. البيانات أنواع مع

Page 4: Lesson9 Create and Modify Fields

Abdullatif [email protected] To add a field in Datasheet view

البيانات ورقة عرض في حقل إلضافة1. On the Table Tools Fields tool tab, in the Add & Delete group, click the data type for the field you want to insert.

Click More Fields to display an extended list of data types. . ادراجه تريد الذي للحقل البيانات نوع على اضغط حذف و إضافة مجموعة في الحقل أدوات تبويب من الجدول أدوات من

البيانات أنواع من موسعة قائمة لعرض إضافية حقول اضغط2. In the column heading row, enter a name for the field.

, للحقل اسم أدخل العمود عنوان سطر .في

Page 5: Lesson9 Create and Modify Fields

Abdullatif [email protected] To insert a Quick Start data type

السريع التشغيل بيانات نوع حقل إلدراج

1. On the Fields tool tab, in the Add & Delete group, click More Fields, and then scroll down to display the Quick Start group.

تبويب في حذف و إضافة مجموعة من , ثم إضافية حقول اضغط الحقل أدوات

قائمة مجموعة إلظهار لألسفل مررالسريع .التشغيل

2. Select the Quick Start data type you want to insert.

السريع التشغيل حقل بيانات نوع اخترادراجه تريد الذي

Page 6: Lesson9 Create and Modify Fields

Abdullatif [email protected]

To define a custom data type application part مخصص بيانات نوع تطبيق جزء لتعريف

• In the datasheet, select the field or fields you want to include in the custom data type.

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

• On the Fields tool tab, in the Add & Delete group, click More Fields, and then click Save Selection as New

Data Type.

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

• In the Create New Data Type from Fields dialog box, enter a name and description for the custom data

type. Select an entry in the Category list, or enter the name for a new category.

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

Page 7: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Page 8: Lesson9 Create and Modify Fields

Abdullatif [email protected]

To rename a field in Datasheet view البيانات و[رقة عرض في حقل تسمية إلعادة

• Right-click the column heading for the field, and then click

Rename Field. العمود عنوان على يمين كليك اضغط

حقل تسمية إعادة اضغط ثم .للحقل• In the highlighted area, enter the

new name for the field. , االسم أدخل المميزة المنطقة من

للحقل الجديد

على يمين كليك

العمود عنوان

للحقل

Page 9: Lesson9 Create and Modify Fields

Abdullatif [email protected] delete a field in Datasheet view

البيانات ورقة عرض في حقل لحذف

• Right-click the column heading for the field, and then click Delete Field. العمود عنوان على يمين كليك اضغط

حقل حذف اضغط ثم .للحقل• Click Yes in the prompt that Access displays to confirm that you want to

delete the field. يظهره الذي التأكيد في نعم اضغطتريد كنت اذا فيما يؤكد األكسيس

الحقل .حذف

على يمين كليك

العمود عنوان

للحقل

Page 10: Lesson9 Create and Modify Fields

Abdullatif [email protected] Working with field properties

الحقل خصائص مع العمل• Fields are defined not only by their name and data

type. Field properties add to the definition of a field by specifying a format (as in Date/Time fields), whether a field is required, whether Access creates an index for that field, the field’s default value, and other information.

• Field properties can be set in Design view or in Datasheet view. In Datasheet view, commands related to field properties are organized in three groups on the Table Tools Fields tool tab: Properties, Formatting, and Field Validation. Be sure to select a field in the datasheet before you set or modify the field’s properties.

• This section describes how you work with several field properties in Datasheet view, what additional properties are available in Design view, and more details about how to modify fields in a table.

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

, ,) برنامج اذا فيما مطلوب الحقل هذا اذا فيما الوقت و , , للحقل افتراضية قيمة عمل للحقل فهرس سينشئ االكسيس

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

, . التي األوامر البيانات ورقة عرض في البيانات ورقة عرض منتبويب من مجموعات ثالث في تنظم الحقل بخصائص عالقة لها

: الجدول أدوات في الحقول أدوات . , اختيار, من تأكد الحقول صحة من التحقق و تنسيقات خصائص

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

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

. الجدول, في الحقول تعديل كيفية عن Zأخرى تفاصيل و التصميم

Page 11: Lesson9 Create and Modify Fields

Abdullatif [email protected] Adding validation rules to fields

للحقل الصحة من التحقق قواعد إضافة• The data type you assign to a field prevents some erroneous data entry. For

example, enter the text “test” in a Date/Time field, and Access displays a warning telling you that the value does not match the Date/Time data type. You can define a validation rule for a field to further control the data a user can enter. (Validation rules don’t apply for all types of fields. You use them most often for fields that use the Short Text, Number, Currency, or Date/Time data types.)

• A simple validation rule might compare the value of a field to one or more constants. For example, enter the expression <1000 as a field validation rule to ensure that the field contains no values greater than 1,000. Be sure to enclose text strings in quotation marks, and enclose dates with pound signs (#). For example, you can create a validation rule that specifies a list of valid values for a product size field by using the expression “Large” OR “Medium” OR “Small”. For a Date/Time field, the expression BETWEEN #1/1/2013# and #12/31/2013# sets the field validation rule so that only dates in calendar year 2013 are valid.

• You can use the LIKE operator and wildcard characters to specify a valid pattern.

For example, for a five-digit US ZIP Code, use the expression LIKE “#####”.

• In Design view, use the Validation Text property to enter an error message that Access displays when invalid data is entered in the field. In Datasheet view, click Field Validation Message to define the message.

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

. من / التحقق قاعدة تعريف يمكنك الوقت تاريخ البيانات نوع مع تطابق ال القيمة أن ( . تنطبق ال إدخالها للمستخدم يمكن التي البيانات على السيطرة لزيادة لحقل الصحة

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

• . أكثر أو واحد لحقل الثوابت قيمة تقارن أن ممكن بسيطة صحة من التحقق قاعدةالتعبير > أدخل المثال، سبيل أن 1000على من للتأكد الحقل صحة من التحقق كقاعدة

من أكبر قيم أية على يحتوي 1الحقل 000، .الهاش )#(. بعالمة التاريخ إغالق و ،»« اقتباس بعالمات النصية السلسلة اغالق من تأكد

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

# / بين التعبير والوقت، التاريخ قاعدة# 12/31/2013و# #1/1/2013لحقل يحددالتقويمية السنة في فقط تواريخ إدخال بحيث الحقل صحة من .2013التحقق صالحة

العامل • استخدام . LIKEيمكننا المثال سبيل على التحقق نموذج لتحديد البديلة الرموز و : التالي التعبير نستخدم أرقام خمسة من البريدي الرمز “#####”. Likeإلدخال

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

. الرسالة لتحديد للحقل التحقق قاعدة رسالة اضغط البيانات ورقة عرض في

Page 12: Lesson9 Create and Modify Fields

Abdullatif [email protected] To add a field validation rule

لحقل الصحة م[ن الت[حقق قاعدة إلض[اف[ة1. Open the table in Datasheet view. 2. On the Table Tools Fields tool tab,

click Validation, Field Validation Rule. 3. In the Expression Builder, enter the

expression that defines the rule, and then click OK.

4. On the Fields tool tab, click Validation, Field Validation Message.

5. In the Enter Validation Message dialog box, enter the message that Access displays if users enter invalid data.

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

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

.3 , الذي التعبير ادخل التعبير بناء مربع في. , موافق اضغط ثم القاعدة يعرف

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

.5 , التحقق رسالة نص ادخال حوار مZربع فياذا األكسيس سيظهرها التي الرسالة أدخلللقاعدة مغايرة معلومات أدخل المستخدم

المعرفة.

Page 13: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Page 14: Lesson9 Create and Modify Fields

Abdullatif [email protected] Changing field captions

الحقل تسميات تغ[يير

• By default, a field’s name identifies the field in the column heading in Datasheet view or when the field is added to a form or a report. You can enter a caption to change the display name for the field. For example, a database designer might name fields by using internal capitalization, such as TaskName. To make the field’s name more readable on forms and reports, enter Task Name for the caption.

To change a field caption:• In Datasheet view, click Name & Caption in

the Properties group (on the Table Tools Fields tool tab).

• In Design view, enter the caption in the Caption property box.

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

تقرير. . للحقل يظهر الذي االسم لتغيير التسمية إدخال يمكنك

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

مثل الكلمات، بين الحقل. TaskNameفراغات اسم لجعلبوضع نقوم والتقارير، النماذج في للقراءة قابلية أكثر

للحقل توضيحية .Task Nameتسمية: للحقل التوضيحية التسمية لتغيير

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

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

Page 15: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Page 16: Lesson9 Create and Modify Fields

Abdullatif [email protected] Changing field sizes

الحقل حجم تغيير• As described earlier in this chapter, the Field Size

property for a field that uses the Short Text data type specifies the maximum number of characters that can be entered in the field. For example, suppose your company uses a six-character product code, with a combination of letters and numbers. You could set the Field Size property to 6 to ensure that no user enters more characters than are allowed.

• For a Number field, the Field Size property specifies the extent of the numbers the field can contain (for example, Byte, Long Integer, and Single).

To change the field size • In Datasheet view, use the Field Size box in the

Properties group (on the Table Tools Fields tool tab) to specify the field size for a text field.

• In Design view, select the field size setting for a Number field; enter the value for a text field.

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

و أحرف من مركبة حروف ستة من كود تستخدم الشركة اسمأرقام.

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

• , يحتويه الذي األرقام توسيع تحدد الحقل حجم خاصية الرقم لحقل) , , , مفرد ) و طويل صحيح عدد بايت المثال سبيل على الحقل

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

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

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

Page 17: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Page 18: Lesson9 Create and Modify Fields

Abdullatif [email protected] Setting default values

االفتراضية القيم اعداد• By using the Default Value command in Datasheet

view (or the Default Value property box in Design view), you define the value that Access enters automatically for a field. For example, you might use the built-in function Now() in an order date field to fill in today’s date when a new order is entered. You can also use a text or numerical constant as a field’s default value. For example, you could set a default value for a country/region field so that the field is set automatically to the value you use most often.

To set the default value for a field • In Datasheet view, click Default Value in the

Properties group to open the Expression Builder. In Design view, you can enter the default value, or click the ellipsis button (…) in the Default Value property box to open the Expression Builder and enter the value or expression there.

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

. الحقل في تلقائي بشكل يدخلها األكسيس برنامج التيالتالية الدالة استخدام يمكننا المثال سبيل )( Nowعلى

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

. لحقل افتراضية قيمة تحديد يمكن كZمثال للحقل افتراضيةتستخدمها القيمة تعيين يتم تلقائي بشكل هنا البلد اسم

دائماً.لحقل • افتراضية قيمة لتعييناالفتراضية • القيمة اضغط البيانات ورقة عرض طريقة في

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

االفتراضية )...( القيمة خصائص صندوق من زر على الضغط. فيها التعبير او القيمة ادخال و التعبير بناء لفتح

Page 19: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Page 20: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Properties group in datasheet viewالبيانات ورقة عرض في خصائص مجموعة

Memo SettingsFor Long Text fields, click Memo Settings, and then choose

the Append Only or Rich Text option.Select Append Only if you want to retain the history of

changes to a field. The Rich Text option converts the field to the Rich Text

format and encodes the field’s data as HTML.

: المذكرة حقل اعدادات , , واختر المذكرة حقل اعدادات اضغط الطويل النص لحقل

. عادي نص خيارات فقط الحاقتغييرات بتاريخ االحتفاظ ترغب كنت اذا فقط الحاق اختر

للحقل. نص تنسيقات الى الحقل تحويل المنسق النص خيارات

كلغة الحقل بيانات تشفير و .HTMLمنسق

Page 21: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Modify Expression When you select a calculated field,

Access enables the Modify Expression command. Use it to open the

Expression Builder and revise the expression that defines the field.

: التعبير تعديل , برنامج محسوب حقل اختيار عند

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

. للحقل المعرف التعبير تغيير

PROPERTIES GROUP IN DATASHEET VIEWالبيانات ورقة عرض في خصائص مجموعة

Page 22: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Modify Lookups When you select a lookup field, Access

enables the Modify Lookups command. Use this command to open the Lookup

wizard and define or modify the fields used to create the lookup relationship.

: البحث حقل تعديل , البحث معالج حقل اختيار عند

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

عالقة إلنشاء المستخدمة الحقول تعديل والبحث.

PROPERTIES GROUP IN DATASHEET VIEWالبيانات ورقة عرض في خصائص مجموعة

Page 23: Lesson9 Create and Modify Fields

Abdullatif [email protected] Field Validation group

الحقل صحة[ من التحقق[ مجم[وع[ة• Required Select this option to require users to enter a value in

the field before they can save المستخدمين مطلوب: خاصية• من لتطلب الخيار هذا اختر

في ) قيمة ادخال يجب أي حفظه قبل الحقل في قيمة بإدخالالحقل(

• Unique Select this option if you want values in this field to be unique for all records.

هذا فريد: خاصية• في القيم تكون ان أردت اذا الخيار هذا اختر) مكررة ) غير قيمة أي السجالت لكل فريدة الحقل

• Indexed Indicates whether the field is indexed. Choose Yes (No Duplicates) or Yes (Duplicates OK). When you index a field,

Access can search for values in that field more efficiently. You should index fields you expect to use frequently in criteria for

queries. . الفهرسة: خاصية• اختر الحقل فهرسة تريد كنت اذا فيما تحدد

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

متكرر بشكل استخدامها تتوقع التي الحقول فهرسة يفضل. لالستعالمات معايير في

Page 24: Lesson9 Create and Modify Fields

Abdullatif [email protected]

Setting field properties in Design view

التصميم عرض من الحقل خصائص اعدادات• When you have a table open in

Design view, select a field to display the current settings for its properties in the Field Properties area. In the area to the right of the list of properties, Access provides a brief description of each property and, in some cases, notes some restrictions or qualifications (such as a field using the Short Text data type can contain a maximum of 255 characters). • The list of properties in Design view

includes those you can set in Datasheet view and others.

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

. في الحقل خصائص منطقة في لخصائصهأكسيس الخصائص منطقة من اليسار طرف , بعض في خاصية كل عن مختصر شرح يؤمنمثل, مزايا أو التقييدات بعض نالحظ الحاالت

ان يمكن قصير نص بيانات نوع يستخدم حقلعلى .255يحتوي حرف

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

. أخرى خصائص و

Page 25: Lesson9 Create and Modify Fields

Abdullatif [email protected]

The following describes some of the additional field properties: االضافية الحقل خصائص بعض يشرح التالي

• Allow Zero Length Set this property to Yes or No depending on whether you want to allow zero-length strings in this field. A zero-length string is essentially a known empty value, which you might use to indicate that a user has no preference about the value in the field or that the value does not apply. (By contrast, a null value indicates an unknown empty value.)

• Unicode Compression When you set this property to Yes, Access stores compressed characters by using fewer bytes, which saves space in the database.

• IME Mode and IME Sentence Mode These properties apply to computers that run Windows using Asian languages.

• Text Align Specifies how text is aligned in the field. You can choose from General (the default), Left, Center, Right, and Distribute.

•: الصفري بالطول ال السماح أو بنعم الخاصية هذه تعيينلحقل الصفري بالطول السماح تريد كنت اذا فيما تعتمد

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

. تطبق ال القيمة ان او الحقل قيمة عن مرجع لديه . , معرفة) غير فارغة قيمة تحدد الخالية القيمة للتوضيح

.) معرفة فارغة قيمة الصفري الطول, :Unicodeضغط • أكسيس بنعم الخاصية هذه تعيين عند

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

جملة IMEنمط • نمط الخاصيتين :IMEو هاتين تطبق. األسيوية اللغة يستعمل ويندوز نظام يشغل جهاز على

•: النص . محاذاة الحقل في النص محاذاة تكون كيف تحدد. , , , , موزع و يمين سط و يسار االفتراضية هي و عام

Page 26: Lesson9 Create and Modify Fields

Abdullatif [email protected] To set and update field properties

in Design view عرض من الحقل خصائص تحديث و لتعيين

.1التصميم In the Navigation pane, right-click the table, and then click Design

View. على يمين كليك اضغط التنقل جزء من

. التصميم عرض اختر و الجدول2. Select the field whose properties

you want to set. . خصائصه تعيين تريد الذي الحقل اختر3. In the Field Properties area,

specify the value for the properties or select an option in

the list Access provides. القيمة حدد الحقل خصائص منطقة منالخيار اختر او خيارات اختر أو للخاصية

يؤمنها التي القائمة من المطلوباألكسيس.

Page 27: Lesson9 Create and Modify Fields

Abdullatif [email protected] Changing field data types

للحقل البيانات أنواع تغيير

In building a table, the best approach is to set the data type for a field once and not change it. Especially after data has been added to a table, changing a field’s data type can be problematic. For example, if you change the data type for a Date/Time field to a Number field, the dates are converted to their serial value (12/31/2013 becomes 41639). Access can handle the conversion of dates to numbers (and back to dates), but other data types don’t work as smoothly. Access displays a warning if you change a field’s data type from Long Text to Short Text, telling you that some data will be lost.

البيانات نوع لتعيين طريقة افضل الجدول بناء عند ً خصوصا تغييرها عدم يفضل و مرة اول من للحقل

, بيانات نوع تغيير الجدول في البيانات ادخال بعد . مشاكل يسبب ممكن الحقل

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

أي تسلسلي رقم الى تحويله سيتم الحقل. 41639تصبح 12/31/2013

الى للتاريخ التحويل معالجة يمكنه األكسيس برنامج , أخرى بيانات أنواع لكن و تاريخ الى يعيده و رقم

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

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

Page 28: Lesson9 Create and Modify Fields

Abdullatif [email protected] Using input masks

االدخال قناع استخدام• An input mask defines a specific pattern

for the data in a field. Adding an input mask to a field assists users with entering data correctly. Access provides input masks for data such as phone numbers, US Social Security numbers, ZIP Codes, passwords, and date formats. • The Input Mask wizard lists the input

masks available for a specific data type. For a Date/ Time field, Access provides entries such as Long Time, Short Date, and Medium Date. For fields that use the Short Text data type, the list includes input masks for phone numbers, ZIP Codes, and other sorts of data.

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

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

أرقام مثل للبيانات جاهزة ادخال أقنعة , كلمة, االجتماعي الضمان رقم الهاتف

. التاريخ, تنسيقات و المرورموجودة • قائمة يعرض االدخال قناع معالج

, . الوقت و التاريخ لحقل البيانات نوع لتحديدتاريخ مثل ادخاالت األكسيس برنامج يؤمن

. , متوسط, تاريخ و قصير تاريخ طويلنص بيانات نوع تستخدم التي للحقول

ألرقام, ادخال أقنعة تتضمن القائمة مختصر , من, أخرى أنواع و البريدي الرمز الهاتف

البيانات

Page 29: Lesson9 Create and Modify Fields

Abdullatif [email protected]

• To set up an input mask, click in the Input Mask property box and then click the ellipsis to run the Input Mask wizard. Enter some sample data in the Try It box to view how the mask controls data entry. (For example, select the Short Date mask, and then enter a month abbreviation in the Try It box.) You can specify how an input mask is designed (by using special characters to define the mask) in the wizard’s second page. In a mask,

• A zero (0) indicates that a user must enter a digit (from 0 through 9) in that placeholder.

• A nine (9) marks an optional digit. • An uppercase L is used to denote a required letter. • A question mark (?). If you want to create an input

mask of your own, click Edit List in the wizard, and then use the defined special characters to set up the mask.

• , االدخال قناع خصائص صندوق في اضغط االدخال قناع إلعداد . االدخال )...( قناع معالج لتشغيل التوسيع زر على اضغط ثم

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

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

, للمعالج الثانية الصفحة في للقناعمن :0رقم • الحقل في فقط ارقام ادخال على المستخدم 0يجبر

–9 . أي المحدد المكان نكتب 00000في ان يجب اننا هذا يعنيفقط ارقام .خمس

ان :9رقم • يمكن اختياري لكن و فقط ارقام الحقل في ادخالتكتب ال ان يمكن و خمس 99999تكتب نكتب ان ممكن يعني

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

. الحقل في احرف ستة ادخال يجب يعني•: ؟ االستفهام االدخال إشارة و فقط أحرف الحقل في ادخال

احرف أربعة او احرف ستة كتابة يمكننا أي ؟؟؟؟؟؟ اختياريطلبنا .حسب

Page 30: Lesson9 Create and Modify Fields

Abdullatif [email protected] To specify an input mask

االدخال قناع لتحديد

1. Open a table in Design view.

2. Select the field you want to work with.

3. In the Input Mask property box, click the

ellipsis to run the Input Mask wizard.

4. Select the mask you want to use, or click

Edit List to modify a built-in mask or create

one of your own.

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

.2. به العمل تريد الذي الحقل اختر

على 3. اضغط االدخال قناع خاصية صندوق من. االدخال قناع معالج لتشغيل توسيع زر

استخدامه 4. تريد الذي القائمة من القناع اخترقناع لتعديل قائمة تحرير على اضغط او

. بك خاص جديد قناع إلنشاء او مبني

Page 31: Lesson9 Create and Modify Fields

Abdullatif [email protected]