SlideShare a Scribd company logo
Abdullatif Tarakji
abdotarakji@gmail.com
Create queries
Create a query ‫استعالم‬ ‫إنشاء‬-
Modify queries ‫االستعالمات‬ ‫تعديل‬-
Utilize calculated fields and grouping within queries
‫االستعالمات‬ ‫في‬ ‫تضمينها‬ ‫و‬ ‫المحسوبة‬ ‫الحقول‬ ‫استخدام‬
Abdullatif Tarakji
abdotarakji@gmail.com
Create a query ‫استعالم‬ ‫إنشاء‬-
• Running queries
‫االستعالمات‬ ‫تشغيل‬
• Saving and deleting queries
‫االستعالمات‬ ‫حذف‬ ‫و‬ ‫حفظ‬
• Creating select queries
‫التحديد‬ ‫استعالمات‬ ‫إنشاء‬
• Using the Simple Query wizard
‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫استخدام‬
• Using the Query Designer
‫االستعالم‬ ‫مصمم‬ ‫استخدام‬
• Creating parameter queries
‫معلمة‬ ‫استعالمات‬ ‫إنشاء‬
Abdullatif Tarakji
abdotarakji@gmail.com
• Queries help you manage database
records, locate records that match specific
criteria, and analyze data. For example, a
make-table query or an append query
(two types of action queries) are often
used to archive records. With a select
query, you can retrieve records for all
orders or add criteria to select a specific
set of records (for example, only orders
placed within the past 90 days that exceed
a certain dollar amount).
• This chapter guides you in studying
methods for creating queries. It also
describes how to manage tables and
relationships in queries. In addition, the
chapter explains how to manage fields
and sort records in a query, how to group
and summarize values, how to create
calculated fields, and how to work with
expressions and operators to define query
criteria.
•‫البيانات‬ ‫قاعدة‬ ‫سجالت‬ ‫بإدارة‬ ‫تساعدك‬ ‫االستعالمات‬,‫ت‬‫حديد‬
‫محددة‬ ‫معايير‬ ‫تطابق‬ ‫التي‬ ‫السجالت‬,‫البيان‬ ‫تحليل‬ ‫و‬‫ات‬.‫كمثال‬
‫جدولي‬ ‫استعالم‬ ‫انشاء‬,‫استعالم‬ ‫إلحاق‬(‫من‬ ‫نوعين‬
‫النشطة‬ ‫االستعالمات‬)‫السجال‬ ‫ألرشفة‬ ‫تستخدم‬ ً‫ا‬‫غالب‬‫ت‬.‫مع‬
‫التحديد‬ ‫استعالم‬,‫ال‬ ‫لكافة‬ ‫السجالت‬ ‫استرجاع‬ ‫يمكنك‬‫أو‬ ‫طلبيات‬
‫المحددة‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫الختيار‬ ‫معايير‬ ‫إضافة‬
(‫كمثال‬,‫آخر‬ ‫وضعت‬ ‫التي‬ ‫الطلبيات‬ ‫فقط‬90‫التي‬ ‫و‬ ‫يوم‬
‫المال‬ ‫من‬ ‫معين‬ ‫مقدار‬ ‫تزيد‬.
•‫االستعالم‬ ‫انشاء‬ ‫أساليب‬ ‫دراسة‬ ‫على‬ ‫يدلك‬ ‫الدرس‬ ‫هذا‬.‫أي‬ً‫ا‬‫ض‬
‫االستعالم‬ ‫في‬ ‫العالقات‬ ‫و‬ ‫الجداول‬ ‫إدارة‬ ‫كيفية‬ ‫تشرح‬.
‫باإلضافة‬,‫ال‬ ‫فرز‬ ‫و‬ ‫الحقول‬ ‫إدارة‬ ‫كيفية‬ ‫يشرح‬ ‫الدرس‬‫سجالت‬
‫االستعالم‬ ‫في‬,‫القيم‬ ‫جمع‬ ‫و‬ ‫تجميع‬ ‫كيفية‬,‫ان‬ ‫كيفية‬‫الحقول‬ ‫شاء‬
‫المحسوبة‬,‫ل‬ ‫المشغالت‬ ‫و‬ ‫التعابير‬ ‫مع‬ ‫العمل‬ ‫كيفية‬ ‫و‬‫تعريف‬
‫االستعالم‬ ‫معايير‬.
Abdullatif Tarakji
abdotarakji@gmail.com Running queries
‫االستعالمات‬ ‫تشغيل‬
• The simplest way to run a query is to double-click its
entry in the Navigation pane. This action displays
the query’s results in Datasheet view, where you
can then sort and filter the records, export the
query’s data, and perform other operations.
You can also right-click a query in the Navigation
pane and then click Open to run the query.
• In the Query Designer, as you add or remove fields
and define criteria and other query properties, use
the Run command in the Results group (on the
Query Tools Design tool tab) to view the records
that the query returns. You can return to Design
view (by using the View menu on the Home tab),
make additional modifications to the query, and
then run the query again to check the effects of the
changes.
To run a query
• In the Navigation pane, double-click the query.
• In Design view, click Run on the Query Tools Design
tool tab.
•‫نقرتين‬ ‫بالضغط‬ ‫هي‬ ‫االستعالم‬ ‫لتشغيل‬ ‫األبسط‬ ‫الطريقة‬‫على‬
‫التنقل‬ ‫جزء‬ ‫نافذة‬ ‫من‬ ‫المطلوب‬ ‫االستعالم‬.‫تظهر‬ ‫الطريقة‬ ‫هذه‬‫نتائج‬
‫البيانات‬ ‫ورقة‬ ‫عرض‬ ‫في‬ ‫االستعالم‬,‫تص‬ ‫و‬ ‫فرز‬ ‫يمكنك‬ ‫حيث‬‫فية‬
‫السجالت‬,‫االستعالم‬ ‫بيانات‬ ‫تصدير‬,‫أخرى‬ ‫عمليات‬ ‫انجاز‬ ‫و‬.
‫في‬ ‫االستعالم‬ ‫على‬ ‫اليمين‬ ‫ماوس‬ ‫بزر‬ ‫الضغط‬ ً‫ا‬‫ايض‬ ‫يمكنك‬‫جزء‬
‫االستعالم‬ ‫لتشغيل‬ ‫فتح‬ ‫أمر‬ ‫اضغط‬ ‫ثم‬ ‫التنقل‬.
•‫تعريف‬ ‫و‬ ‫الحقول‬ ‫إزالة‬ ‫و‬ ‫إضافة‬ ‫حيث‬ ‫االستعالم‬ ‫مصمم‬ ‫من‬
‫لالستعالم‬ ‫أخرى‬ ‫خصائص‬ ‫و‬ ‫المعايير‬,‫م‬ ‫تشغيل‬ ‫أمر‬ ‫استخدم‬‫ن‬
‫النتائج‬ ‫مجموعة‬(‫التصمي‬ ‫أدوات‬ ‫االستعالم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬‫م‬),
‫لالستعالم‬ ‫إضافية‬ ‫تعديالت‬ ‫بعمل‬ ‫نقوم‬,‫االست‬ ‫تشغيل‬ ‫ثم‬‫مرة‬ ‫عالم‬
‫التغيير‬ ‫تأثيرات‬ ‫لتدقيق‬ ‫أخرى‬.
‫االستعالم‬ ‫لتشغيل‬:
•‫التنقل‬ ‫جزء‬ ‫من‬,‫االستعالم‬ ‫على‬ ‫نقرتين‬ ‫اضغط‬.
•‫التصميم‬ ‫عرض‬ ‫من‬,‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫تشغيل‬ ‫على‬ ‫اضغط‬
‫التصميم‬ ‫أداة‬ ‫تبويب‬.
Abdullatif Tarakji
abdotarakji@gmail.com
.1‫التنقل‬ ‫جزء‬ ‫من‬,
‫عل‬ ‫نقرتين‬ ‫اضغط‬‫ى‬
‫االستعالم‬.
.2‫عل‬ ‫يمين‬ ‫كليك‬ ‫أو‬‫ى‬
‫اضغط‬ ‫و‬ ‫االستعالم‬
‫القائمة‬ ‫من‬ ‫فتح‬
‫المختصرة‬
‫التصميم‬ ‫عرض‬ ‫من‬,‫أدوات‬ ‫من‬ ‫تشغيل‬ ‫على‬ ‫اضغط‬
‫تبويب‬ ‫االستعالم‬‫نتائج‬ ‫مجموعة‬ ‫من‬ ‫التصميم‬.
Abdullatif Tarakji
abdotarakji@gmail.com Saving and deleting queries
‫االستعالمات‬ ‫حذف‬ ‫و‬ ‫حفظ‬
• Access automatically saves a query you create by
using one of the query wizards. When you design a
query from scratch in the Query Designer, Access
assigns a default name to the query (Query1, for
example). To name and save the query, click the
Save button on the Quick Access Toolbar, or click 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 query as a new
database object (by choosing 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 query
that’s already designed (by adding additional
selection criteria, for example) and don’t want to
risk inadvertent changes to the original query.
• To delete a query from a database, right-click the
query in the Navigation pane, and then click Delete.
Queries are often used as the record source for
forms and reports. If you delete a query that’s the
basis of a form or report, you need to update the
record source before you can use the form or report
to view records.
•‫بواسط‬ ‫المنشئ‬ ‫االستعالم‬ ً‫ا‬‫تلقائي‬ ‫يحفظ‬ ‫األكسيس‬ ‫برنامج‬‫معالج‬ ‫ة‬
‫االستعالمات‬.‫االستعالم‬ ‫مصمم‬ ‫في‬ ‫االستعالم‬ ‫تصميم‬ ‫عند‬,‫ب‬‫رنامج‬
‫لالستعالم‬ ‫افتراضي‬ ‫اسم‬ ‫يحدد‬ ‫االكسيس‬(‫استعالم‬1‫كمثال‬.)‫و‬ ‫لتسمية‬
‫السريع‬ ‫األدوات‬ ‫شريط‬ ‫من‬ ‫حفظ‬ ‫زر‬ ‫على‬ ‫اضغط‬ ‫االستعالم‬ ‫حفظ‬,‫أو‬
‫ملف‬ ‫قائمة‬ ‫العمل‬ ‫منصة‬ ‫عرض‬ ‫من‬ ‫حفظ‬ ‫امر‬ ‫على‬ ‫اضغط‬.
•‫إل‬ ‫ملف‬ ‫قائمة‬ ‫من‬ ‫باسم‬ ‫حفظ‬ ‫صفحة‬ ‫في‬ ‫الخيارات‬ ‫استخدام‬ ‫يمكن‬‫نشاء‬
‫حفظ‬ ‫باختيارك‬ ‫جديد‬ ‫بيانات‬ ‫قاعدة‬ ‫ككائن‬ ‫االستعالم‬ ‫من‬ ‫نسخة‬‫ككائن‬,
‫كملف‬ ‫أو‬PDF‫كملف‬ ‫أو‬XPS.‫اذا‬ ‫مساعدتك‬ ‫يمكنه‬ ‫كأمر‬ ‫كائن‬ ‫حفظ‬
ً‫ا‬‫اساس‬ ‫مصمم‬ ‫استعالم‬ ‫مع‬ ‫تجربته‬ ‫تريد‬ ‫كنت‬(‫معيار‬ ‫بإضافة‬‫تحديد‬
‫كمثال‬ ‫محدد‬)‫األصلي‬ ‫لالستعالم‬ ‫تحدث‬ ‫مخاطر‬ ‫أي‬ ‫تريد‬ ‫ال‬ ‫و‬.
•‫البيانات‬ ‫قاعدة‬ ‫من‬ ‫استعالم‬ ‫لحذف‬,‫اال‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬‫ستعالم‬
‫حذف‬ ‫على‬ ‫اضغط‬ ‫ثم‬ ‫المهام‬ ‫جزء‬ ‫نافذة‬ ‫في‬.ً‫ا‬‫غالب‬ ‫االستعالمات‬
‫التقارير‬ ‫و‬ ‫للنماذج‬ ‫السجل‬ ‫مصدر‬ ‫تستخدم‬.‫است‬ ‫بحذف‬ ‫قمت‬ ‫اذا‬‫و‬ ‫عالم‬
‫تقرير‬ ‫او‬ ‫لنموذج‬ ‫أساسي‬ ‫هو‬,‫قب‬ ‫السجل‬ ‫مصدر‬ ‫لتحديث‬ ‫تحتاج‬‫ان‬ ‫ل‬
‫السجالت‬ ‫لعرض‬ ‫التقرير‬ ‫و‬ ‫النموذج‬ ‫تستخدم‬.
Abdullatif Tarakji
abdotarakji@gmail.com To save a query ‫استعالم‬ ‫لحفظ‬-
1. On the Quick Access Toolbar, click Save.
2. In the Save As dialog box, enter a name for the
query and then click OK.
.1‫حفظ‬ ‫اضغط‬ ‫السريع‬ ‫األدوات‬ ‫شريط‬ ‫من‬.
.2‫مواف‬ ‫على‬ ‫اضغط‬ ‫ثم‬ ‫االستعالم‬ ‫اسم‬ ‫أدخل‬ ‫باسم‬ ‫حفظ‬ ‫حوار‬ ‫صندوق‬ ‫من‬‫ق‬.
To delete a query ‫استعالم‬ ‫لحذف‬-
In the Navigation pane, right-click the
query, and then click Delete.
‫االستع‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬ ‫التنقل‬ ‫جزء‬ ‫نافذة‬ ‫من‬‫الم‬
‫حذف‬ ‫اضغط‬ ‫ثم‬ ‫حذفه‬ ‫المطلوب‬
Abdullatif Tarakji
abdotarakji@gmail.com
Creating select queries
‫التحديد‬ ‫استعالمات‬ ‫إنشاء‬
• A select query returns all or a subset of the records stored in
one or more tables. When creating a select query, you
specify which fields you want to use, and you can also
define criteria to return a specific set of records. One simple
use for a select query is to set up a record source for a
mailing list. For example, by using a contacts table as the
basis for the query, you could include name, address, and
related fields in the query without adding fields for a
contact’s email address and phone number. If you’re
sending a mailing to contacts in specific locations, you could
define criteria that limits the records the query returns to
contacts in the particular cities or postal codes you
designate.
• Select queries (and queries of other types) also illustrate the
purpose of table relationships. You can add two or more
tables to a query and use their relationship to retrieve a set
of records from all the tables—for example, all high-priority
tasks related to projects for a particular customer, managed
by a specific employee, and with a completion date within
30 days.
• To create a select query, you can use the Simple Query
wizard or build the query by using the Query Designer. Use
the Query Designer if you want to add criteria to the query.
•‫تحديد‬ ‫استعالم‬‫أو‬ ‫السجالت‬ ‫كافة‬ ‫بإرجاع‬ ‫يقوم‬‫السجالت‬ ‫من‬ ‫فرعية‬ ‫مجموعة‬
‫أكثر‬ ‫أو‬ ‫واحد‬ ‫جدول‬ ‫في‬ ‫المخزنة‬.‫ال‬ ‫تحديد‬ ‫يمكنك‬ ،‫تحديد‬ ‫استعالم‬ ‫إنشاء‬ ‫عند‬‫حقول‬
‫من‬ ‫محددة‬ ‫مجموعة‬ ‫إلرجاع‬ ‫معايير‬ ‫تحديد‬ ‫أيضا‬ ‫ويمكنك‬ ،‫استخدامها‬ ‫تريد‬ ‫التي‬
‫السجالت‬.‫استعالم‬ ‫الستخدام‬ ‫بسيطة‬ ‫طريقة‬‫هو‬ ‫تحديد‬‫اعداد‬‫للح‬ ‫سجل‬ ‫مصدر‬‫صول‬
‫بريدية‬ ‫قائمة‬ ‫على‬.‫كأساس‬ ‫االتصاالت‬ ‫الجدول‬ ‫باستخدام‬ ،‫المثال‬ ‫سبيل‬ ‫على‬
،‫لالستعالم‬‫يمكن‬‫أن‬‫االسم‬ ‫االستعالم‬ ‫يشمل‬،‫والعنوان‬‫وحقول‬‫ف‬ ‫الصلة‬ ‫ذات‬‫ي‬
‫ورقم‬ ‫االتصال‬ ‫لجهة‬ ‫اإللكتروني‬ ‫البريد‬ ‫لعنوان‬ ‫حقول‬ ‫إضافة‬ ‫دون‬ ‫االستعالم‬‫الهاتف‬.
‫بإرسال‬ ‫تقوم‬ ‫كنت‬ ‫إذا‬‫البريد‬،‫محددة‬ ‫مواقع‬ ‫في‬ ‫االتصال‬ ‫لجهات‬‫يمكن‬‫تحدد‬ ‫أن‬
‫مدن‬ ‫في‬ ‫االتصال‬ ‫جهات‬ ‫إلى‬ ‫بإرجاع‬ ‫االستعالم‬ ‫سجالت‬ ‫من‬ ‫تحد‬ ‫التي‬ ‫المعايير‬‫معينة‬
‫التي‬ ‫البريدية‬ ‫الرموز‬ ‫أو‬‫تصمم‬.
•‫التحديد‬ ‫استعالمات‬(‫أنواع‬ ‫من‬ ‫واستعالمات‬‫أخرى‬)‫أيضا‬‫توضح‬‫من‬ ‫الغرض‬
‫الجدول‬ ‫عالقات‬.‫الجداول‬ ‫من‬ ‫أكثر‬ ‫أو‬ ‫اثنين‬ ‫إضافة‬ ‫يمكنك‬‫لالستعالم‬‫واستخد‬‫ام‬
‫سبيل‬ ‫على‬ ،‫الجداول‬ ‫كافة‬ ‫من‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫السترداد‬ ‫بينهما‬ ‫العالقة‬
،‫معين‬ ‫لعميل‬ ‫بالمشاريع‬ ‫المتعلقة‬ ‫العالية‬ ‫األولوية‬ ‫ذات‬ ‫المهام‬ ‫جميع‬ ،‫المثال‬‫يديرها‬
‫غضون‬ ‫في‬ ‫االنتهاء‬ ‫تاريخ‬ ‫وجود‬ ‫مع‬ ،‫معين‬ ‫موظف‬30‫يوما‬.
•‫االس‬ ‫بناء‬ ‫أو‬ ‫بسيط‬ ‫استعالم‬ ‫معالج‬ ‫استخدام‬ ‫يمكنك‬ ،‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬‫تعالم‬
‫االستعالم‬ ‫مصمم‬ ‫باستخدام‬.‫إض‬ ‫في‬ ‫ترغب‬ ‫كنت‬ ‫إذا‬ ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬‫افة‬
‫إلى‬ ‫معايير‬‫االستعالم‬.
Abdullatif Tarakji
abdotarakji@gmail.com
Using the Simple Query wizard
‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫استخدام‬
• To start the Simple Query wizard, click Query Wizard in the
Queries group on the Create tab. In the New Query dialog
box, select Simple Query Wizard. In the next step, add
fields from one or more tables (or queries) to define the
query you’re creating.
The Simple Query wizard tailors its steps based on factors
such as the following:
• If you add fields from only one table and those fields store
only text data (not numeric data), the third and last step is
to provide a name for the query and then specify whether
to open the query to view the records it returns or open
the query in Design view for modification.
• If you include numeric or date fields or fields from more
than one table, the wizard prompts you to create a detail
query or a summary query. A detail query shows each
individual record for the query. In a summary query, you
can total the values in a field or determine the field’s
average, minimum, or maximum value.
• When date fields are present in a summary query, the
wizard also prompts you to choose an option for how you
want to group records by dates. For example, you can
group records by month, quarter, or year.
•‫استعال‬ ‫مجموعة‬ ‫في‬ ‫االستعالم‬ ‫معالج‬ ‫فوق‬ ‫انقر‬ ،‫بسيط‬ ‫استعالم‬ ‫معالج‬ ‫لبدء‬‫في‬ ‫مات‬
‫إنشاء‬ ‫التبويب‬ ‫عالمة‬.‫ب‬ ‫استعالم‬ ‫معالج‬ ‫حدد‬ ،‫جديد‬ ‫استعالم‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫سيط‬.
‫الجداول‬ ‫من‬ ‫أكثر‬ ‫أو‬ ‫واحد‬ ‫من‬ ‫حقول‬ ‫إضافة‬ ،‫التالية‬ ‫الخطوة‬ ‫في‬(‫أو‬‫االستعالمات‬)
‫االستعالم‬ ‫لتحديد‬‫إنشائه‬ ‫تريد‬ ‫الذي‬.
‫التالية‬ ‫العوامل‬ ‫حسب‬ ‫على‬ ‫بعضها‬ ‫مع‬ ‫مرتبطة‬ ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫خطوات‬:
•‫إذا‬‫الحقول‬ ‫وتلك‬ ،‫فقط‬ ‫واحد‬ ‫جدول‬ ‫من‬ ‫حقول‬ ‫بإضافة‬ ‫قمت‬‫تخزن‬‫البيانات‬‫النص‬‫ية‬
‫فقط‬(‫الرقمية‬ ‫البيانات‬ ‫وليس‬)‫الخطوة‬ ‫الى‬ ‫مباشرة‬ ‫تنتقل‬ ،‫واألخير‬ ‫الثالثة‬‫ة‬‫هي‬ ‫و‬
‫لالستعالم‬ ‫اسم‬ ‫لتوفير‬‫من‬ ‫و‬‫تحديد‬ ‫ثم‬‫فتح‬ ‫طريقة‬‫السج‬ ‫لعرض‬ ‫االستعالم‬‫الت‬‫التي‬
‫ارجاعها‬ ‫يتم‬‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫أو‬‫تصميمه‬ ‫لتعديل‬.
•‫إذا‬‫بتضمين‬ ‫قمت‬‫من‬ ‫حقول‬ ‫أو‬ ‫وقت‬ ‫و‬ ‫تاريخ‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬‫جد‬ ‫من‬ ‫أكثر‬‫ول‬
،‫واحد‬‫ملخص‬ ‫استعالم‬ ‫أو‬ ‫التفاصيل‬ ‫استعالم‬ ‫إلنشاء‬ ‫المعالج‬ ‫يطالبك‬.‫ويظهر‬
‫لالستعالم‬ ‫الفردية‬ ‫سجل‬ ‫كل‬ ‫التفاصيل‬ ‫االستعالم‬.
‫في‬‫استعالم‬‫جمع‬ ‫يمكنك‬ ،‫ملخص‬‫تحديد‬ ‫أو‬ ‫حقل‬ ‫في‬ ‫القيم‬‫الحساب‬ ‫المتوسط‬‫أو‬ ،‫ي‬
‫الحد‬‫القصوى‬ ‫القيمة‬ ‫أو‬ ،‫للحقل‬ ‫األدنى‬.
•‫في‬ ‫تعرض‬ ‫وعندما‬‫الخ‬ ‫يطالبك‬ ‫أيضا‬ ‫المعالج‬ ،‫التاريخ‬ ‫حقول‬ ‫ملخص‬ ‫استعالم‬‫تيار‬
‫التواريخ‬ ‫حسب‬ ‫السجالت‬ ‫لتجميع‬ ‫تريد‬ ‫لكيف‬ ‫خيار‬.‫يم‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تجميع‬ ‫كن‬
،‫الشهر‬ ‫حسب‬ ‫السجالت‬،‫السنة‬ ‫ربع‬‫أو‬‫السنة‬.
Abdullatif Tarakji
abdotarakji@gmail.com To create a select query by using the Simple Query wizard
‫البسيطة‬ ‫االستعالمات‬ ‫معالج‬ ‫باستخدام‬ ‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬
1. On the Create tab, in the Queries group, click Query
Wizard.
2. In the New Query dialog box, select Simple Query
Wizard, and then click OK.
3. In the Simple Query wizard, in the Tables/Queries list,
select the first table or query you want to use for this
query. From the Available Fields list, add the fields you
want to include in the query to the Selected Fields list.
Click the chevron button to move all the fields to the
Selected Fields list.
4. Repeat step 3 to include other tables or queries in the
select query, and then add the fields you want to
include. Click Next.
5. If the query includes numeric fields or fields from more
than one table, the wizard prompts you to create a
detail query or a summary query. If you select the
Summary option, click Summary Options, and then
select the summary function you want to apply to the
fields that Access lists. Click OK in the Summary
Options dialog box, and then click Next.
6. If prompted by the wizard, choose an option to group
dates in the query.
7. On the wizard’s last page, enter a name for the query,
and then choose whether to open the query to review
the results or open the query in Design view.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫من‬,‫االستعالم‬ ‫معالج‬ ‫على‬ ‫اضغط‬‫ات‬.
.2‫استعالم‬ ‫حوار‬ ‫مربع‬ ‫من‬‫جديد‬,‫مواف‬ ‫ثم‬ ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫اختر‬‫ق‬.
.3‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫في‬,‫استعالمات‬ ‫و‬ ‫جداول‬ ‫قائمة‬ ‫من‬,‫الج‬ ‫اختر‬‫او‬ ‫دول‬
‫االستعالم‬ ‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫األول‬ ‫االستعالم‬.‫الحقول‬ ‫قائمة‬ ‫من‬
‫المتوفرة‬,‫قا‬ ‫الى‬ ‫االستعالم‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أضف‬‫الحقول‬ ‫ئمة‬
‫المحددة‬.‫قائمة‬ ‫الى‬ ‫الحقول‬ ‫جميع‬ ‫لتحريك‬ ‫الكل‬ ‫اختيار‬ ‫زر‬ ‫على‬ ‫اضغط‬
‫المحددة‬ ‫الحقول‬.
.4‫الخطوة‬ ‫كرر‬3‫المحدد‬ ‫االستعالم‬ ‫في‬ ‫أخرى‬ ‫استعالمات‬ ‫او‬ ‫جداول‬ ‫لتضمين‬‫ثم‬
‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أضف‬.‫التالي‬ ‫اضغط‬ ‫ثم‬.
.5‫اذا‬‫أخرى‬ ‫جداول‬ ‫من‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬ ‫يتضمن‬ ‫االستعالم‬ ‫كان‬,‫المعال‬‫ج‬
‫ملخص‬ ‫استعالم‬ ‫او‬ ‫االستعالم‬ ‫تفصيل‬ ‫إلنشاء‬ ‫يطالب‬.‫خي‬ ‫اخترت‬ ‫اذا‬‫ار‬
‫ملخص‬,‫التلخيص‬ ‫خيارات‬ ‫على‬ ‫اضغط‬,‫ت‬ ‫تريد‬ ‫التي‬ ‫الداالت‬ ‫اختر‬ ‫ثم‬‫طبيقها‬
‫االكسيس‬ ‫يعرضها‬ ‫التي‬ ‫للحقول‬.‫خيارا‬ ‫حوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫اضغط‬‫ت‬
‫التلخيص‬,‫التالي‬ ‫اضغط‬ ‫ثم‬.
.6‫المعالج‬ ‫طالبك‬ ‫اذا‬,‫االستعالم‬ ‫في‬ ‫التواريخ‬ ‫لتجميع‬ ‫خيار‬ ‫اختر‬.
.7‫المعالج‬ ‫من‬ ‫صفحة‬ ‫آخر‬ ‫في‬,‫لالستعالم‬ ‫اسم‬ ‫ادخل‬,‫فت‬ ‫طريقة‬ ‫اختر‬ ‫ثم‬‫ح‬
‫ل‬ ‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫أو‬ ‫النتائج‬ ‫لعرض‬ ‫االستعالم‬‫تعديله‬.
Abdullatif Tarakji
abdotarakji@gmail.com
Abdullatif Tarakji
abdotarakji@gmail.com
If the query includes numeric fields or fields
from more than one table, the wizard prompts
you to create a detail query or a summary
query. If you select the Summary option, click
Summary Options, and then select the
summary function you want to apply to the
fields that Access lists. Click OK in the Summary
Options dialog box, and then click Next.
‫من‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬ ‫يتضمن‬ ‫االستعالم‬ ‫كان‬ ‫اذا‬
‫أخرى‬ ‫جداول‬,‫إلنشاء‬ ‫يطالب‬ ‫المعالج‬‫تفصيل‬‫االس‬‫تعالم‬
‫ملخص‬ ‫استعالم‬ ‫او‬.‫خيار‬ ‫اخترت‬ ‫اذا‬‫ملخص‬,‫اضغط‬
‫خيارات‬ ‫على‬‫التلخيص‬,‫ت‬ ‫التي‬ ‫الداالت‬ ‫اختر‬ ‫ثم‬‫ريد‬
‫االكسيس‬ ‫يعرضها‬ ‫التي‬ ‫للحقول‬ ‫تطبيقها‬.‫اضغ‬‫موافق‬ ‫ط‬
‫خيارات‬ ‫حوار‬ ‫مربع‬ ‫في‬‫التلخيص‬,‫الت‬ ‫اضغط‬ ‫ثم‬‫الي‬.
Abdullatif Tarakji
abdotarakji@gmail.com Using the Query Designer
‫االستعالم‬ ‫مصمم‬ ‫استخدام‬
• Use the Query Design command on the Create tab to open
the Query Designer. The Query Designer displays the query
design grid (below the main pane) and the Show Table
dialog box.
• The Show Table dialog box lists all the tables and queries in
the current database. Click a tab (Tables, Queries, or Both)
to select the object or objects that contain the fields you
want to include in the query. Close the Show Table dialog
box to start adding fields to the query.
• If you need to add tables to a query later, open the query in
Design view, and then click Show Table in the Query Setup
group on the Query Tools Design tool tab. You can also
right-click in the Query Designer’s main pane (but not on a
field list), and then click Show Table. If you need to remove
a table from the Query Designer, right-click the table’s field
list, and then click Remove Table.
• Drag the field lists in the Query Designer’s main pane to
reposition the lists and view more clearly the relationship
lines that link tables. To add a field to the query, drag it
from the field list to the Field row in a blank column in the
design grid. (You can press Ctrl or Shift to select multiple
fields.) You can also select fields from the list displayed
when you click the arrow at the right of a column in the
Field row. To add all the fields in a table to the query design
grid, double-click the asterisk (*) at the top of the field list.
•‫االستع‬ ‫مصمم‬ ‫لفتح‬ ‫إنشاء‬ ‫التبويب‬ ‫عالمة‬ ‫ضمن‬ ‫االستعالم‬ ‫تصميم‬ ‫األمر‬ ‫استخدام‬‫الم‬.‫يعرض‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫االستعالم‬ ‫مصمم‬(‫من‬ ‫األسفل‬ ‫في‬‫الرئيسي‬ ‫الجزء‬)‫و‬‫إظه‬‫ار‬‫مربع‬
‫الحوار‬‫جدول‬.
•‫الحالي‬ ‫البيانات‬ ‫قاعدة‬ ‫في‬ ‫واالستعالمات‬ ‫الجداول‬ ‫كافة‬ ‫جدول‬ ‫إظهار‬ ‫الحوار‬ ‫مربع‬ ‫يسرد‬‫ة‬.
‫التبويب‬ ‫عالمة‬ ‫فوق‬ ‫انقر‬(‫أو‬ ،‫االستعالمات‬ ،‫الجداول‬‫كالهما‬)‫الكائ‬ ‫أو‬ ‫الكائن‬ ‫لتحديد‬‫نات‬
‫االستعالم‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫على‬ ‫تحتوي‬ ‫التي‬.‫إ‬ ‫الحوار‬ ‫مربع‬ ‫إغالق‬‫ظهار‬
‫االستعالم‬ ‫إلى‬ ‫حقول‬ ‫إضافة‬ ‫لبدء‬ ‫جدول‬.
•‫ف‬ ‫االستعالم‬ ‫افتح‬ ،‫الحق‬ ‫وقت‬ ‫في‬ ‫االستعالم‬ ‫إلى‬ ‫الجداول‬ ‫إضافة‬ ‫إلى‬ ‫بحاجة‬ ‫كنت‬ ‫إذا‬‫طريقة‬ ‫ي‬
‫فوق‬ ‫انقر‬ ‫ثم‬ ‫ومن‬ ،‫التصميم‬ ‫عرض‬‫جدول‬ ‫إظهار‬‫االستعالم‬ ‫إعداد‬ ‫المجموعة‬ ‫في‬‫أدوات‬ ‫في‬
‫تبويب‬‫تصميم‬ ‫أداة‬.‫أيضا‬ ‫يمكنك‬‫بزر‬ ‫الضغط‬‫الرئي‬ ‫الجزء‬ ‫في‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬‫سي‬
‫االستعالم‬ ‫مصمم‬(‫على‬ ‫ليس‬ ‫ولكن‬‫الحقول‬ ‫قائمة‬)،‫جدول‬ ‫إظهار‬ ‫فوق‬ ‫انقر‬ ‫ثم‬.‫كنت‬ ‫إذا‬
‫الحقول‬ ‫قائمة‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫انقر‬ ،‫االستعالم‬ ‫مصمم‬ ‫من‬ ‫الجدول‬ ‫إزالة‬ ‫إلى‬ ‫بحاجة‬
‫الجدول‬ ‫إزالة‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ،‫للجدول‬.
•‫قوائم‬ ‫اسحب‬‫في‬ ‫الحقل‬‫الرئيسي‬ ‫الجزء‬‫لمصمم‬‫أك‬ ‫وعرض‬ ‫القوائم‬ ‫إلعادة‬ ‫االستعالم‬‫ثر‬
‫وضوحا‬‫لخطوط‬‫الجداول‬ ‫بين‬ ‫تربط‬ ‫التي‬ ‫العالقة‬.‫اسحب‬ ،‫االستعالم‬ ‫إلى‬ ‫حقل‬ ‫إلضافة‬‫من‬ ‫ه‬
‫التصميم‬ ‫شبكة‬ ‫في‬ ‫فارغ‬ ‫عمود‬ ‫في‬ ‫الحقول‬ ‫صف‬ ‫إلى‬ ‫الحقول‬ ‫قائمة‬.
(‫على‬ ‫الضغط‬ ‫يمكنك‬Ctrl‫أو‬Shift‫متعددة‬ ‫حقول‬ ‫لتحديد‬).‫يمكنك‬‫م‬ ‫الحقول‬ ‫تحديد‬ ‫أيضا‬‫ن‬
‫حقل‬ ‫الصف‬ ‫في‬ ‫عمود‬ ‫يمين‬ ‫على‬ ‫السهم‬ ‫فوق‬ ‫النقر‬ ‫عند‬ ‫عرض‬ ‫قائمة‬.
‫إلضافة‬،‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫إلى‬ ‫جدول‬ ‫في‬ ‫الحقول‬ ‫كافة‬‫انقر‬‫فو‬ ‫مزدوجا‬ ‫نقرا‬‫النجمة‬ ‫ق‬
)*(‫الحقول‬ ‫قائمة‬ ‫من‬ ‫العلوي‬ ‫الجزء‬ ‫في‬.
Abdullatif Tarakji
abdotarakji@gmail.com
• As mentioned earlier, a select query often includes
criteria that defines the subset of records the query
returns when you run it. For example, to find records
for customers in a specific city, add the City field to
the query. In the Criteria row for that field, enter
=”CityName” (where “CityName” is the city you want
to examine). You must enclose text values in
quotation marks.
• To specify criteria for a date field, enclose the date (or
dates) in pound signs (#). You can retrieve records for
orders placed between two dates by using an
expression such as Between #4/1/2014# and
#4/30/2014#. You can also use operators to retrieve
records less than (<) or greater than (>) a certain
numeric amount.
•‫وقت‬ ‫في‬ ‫ذكر‬ ‫كما‬،‫سابق‬‫استعالم‬‫غالبا‬ ‫التحديد‬‫المعا‬ ‫تتضمن‬ ‫ما‬‫التي‬ ‫يير‬
‫تحدد‬‫فرعية‬ ‫مجموعة‬‫االستعالم‬ ‫سجالت‬ ‫من‬‫بإرجاعها‬‫تشغيله‬ ‫عند‬.‫ع‬‫لى‬
‫إضاف‬ ،‫معينة‬ ‫مدينة‬ ‫في‬ ‫للعمالء‬ ‫سجالت‬ ‫عن‬ ‫للبحث‬ ،‫المثال‬ ‫سبيل‬‫الحقل‬ ‫ة‬
‫االستعالم‬ ‫مدينة‬ ‫إلى‬.‫الحقل‬ ‫لهذا‬ ‫معايير‬ ‫الصف‬ ‫في‬،
‫أدخل‬=«‫المدينة‬ ‫اسم‬»
(‫حيث‬«‫المدينة‬ ‫اسم‬»‫هي‬‫تريد‬ ‫التي‬ ‫المدينة‬‫فحصها‬.)
‫يجب‬‫ن‬ ‫قيم‬ ‫تضمين‬ ‫عليك‬‫صية‬‫اقتباس‬ ‫عالمات‬ ‫في‬.
•‫التاريخ‬ ‫إحاطة‬ ،‫التاريخ‬ ‫لحقل‬ ‫معايير‬ ‫لتحديد‬(‫التواريخ‬ ‫أو‬)‫ع‬ ‫في‬‫المات‬
‫الهاش‬(#.)‫تاريخين‬ ‫بين‬ ‫وضعت‬ ‫ألوامر‬ ‫السجالت‬ ‫استرداد‬ ‫يمكنك‬
‫تعبير‬ ‫باستخدام‬‫مثل‬‫بين‬‫تاريخين‬
Between #4/1/2014# and #4/30/2014#.
‫يمكنك‬‫السجالت‬ ‫السترداد‬ ‫المشغلين‬ ‫استخدام‬ ‫أيضا‬
‫أقل‬‫من‬(<)‫من‬ ‫أكبر‬ ‫أو‬(>)‫رقمي‬‫معين‬.
Abdullatif Tarakji
abdotarakji@gmail.com
• When you enter criteria in the Criteria row for
more than one field, the query selects only
records that match the criteria in all those
fields—for example, records that have a value in
the Order Date field greater than 9/15/2013 and
a value for the Company Name field of Fabrikam.
If you want to set up OR criteria (to find records
with a value in the Company Name field of
Fabrikam or Contoso), enter the second criteria
in the Or row (below the Criteria row).
• In the Query Setup group, use the Return list
(the ScreenTip reads Top Values) to limit the
number of records the query returns. By default,
a query returns all matching records, but you can
select one of the preset values (5, 25, 100, 5%,
or 25%) or enter a value in the list box to specify
how many records you want to display. After you
sort records in a query, you can use the Return
list to show, for example, the top 20 orders that
customers placed in the current month.
•‫عند‬‫في‬ ‫معايير‬ ‫إدخال‬‫صف‬‫يخت‬ ‫االستعالم‬ ،‫واحد‬ ‫حقل‬ ‫من‬ ‫ألكثر‬ ‫معايير‬‫ار‬
‫المجاالت‬ ‫هذه‬ ‫جميع‬ ‫في‬ ‫المعايير‬ ‫تطابق‬ ‫التي‬ ‫الوحيدة‬ ‫السجالت‬
‫على‬،‫المثال‬ ‫سبيل‬
‫السجالت‬‫من‬ ‫أكبر‬ ‫الحقل‬ ‫ترتيب‬ ‫التاريخ‬ ‫في‬ ‫قيمة‬ ‫على‬ ‫تحتوي‬ ‫التي‬
2013/9/15‫من‬ ‫الشركة‬ ‫اسم‬ ‫للحقل‬ ‫قيمة‬ ‫و‬Fabrikam.‫إذا‬‫ترغب‬ ‫كنت‬
‫معايير‬ ‫أو‬ ‫إعداد‬ ‫في‬(‫الشركة‬ ‫اسم‬ ‫حقل‬ ‫في‬ ‫القيمة‬ ‫مع‬ ‫سجالت‬ ‫عن‬ ‫للبحث‬
‫من‬Fabrikam‫أو‬‫شركة‬Contoso)،‫أدخل‬‫الثاني‬ ‫المعيار‬‫الصف‬ ‫في‬‫أو‬
(‫األسفل‬ ‫في‬‫المعايير‬ ‫صف‬ ‫من‬.)
•‫العودة‬ ‫قائمة‬ ‫استخدام‬ ‫االستعالم‬ ‫إعداد‬ ‫المجموعة‬ ‫في‬(‫يق‬ ‫الشاشة‬ ‫تلميح‬‫رأ‬
‫القيم‬ ‫أعلى‬)‫عدد‬ ‫من‬ ‫للحد‬‫في‬ ‫السجالت‬‫االستعالم‬ ‫إرجاع‬.‫افتراض‬ ‫بشكل‬،‫ي‬
‫االستعالم‬‫كافة‬ ‫يرجع‬‫م‬ ‫واحد‬ ‫اختيار‬ ‫يمكنك‬ ‫ولكن‬ ،‫المتطابقة‬ ‫السجالت‬‫القيم‬ ‫ن‬
‫مسبقا‬ ‫المحددة‬(5،25،100،5‫أو‬ ،٪25٪)‫مربع‬ ‫في‬ ‫قيمة‬ ‫إدخال‬ ‫أو‬
‫عرضها‬ ‫تريد‬ ‫التي‬ ‫السجالت‬ ‫عدد‬ ‫لتحديد‬ ‫القائمة‬.
‫بعد‬،‫للعرض‬ ‫العودة‬ ‫قائمة‬ ‫استخدام‬ ‫يمكنك‬ ،‫استعالم‬ ‫في‬ ‫السجالت‬ ‫فرز‬‫على‬
‫فإن‬ ،‫المثال‬ ‫سبيل‬‫أعلى‬20‫التي‬ ‫طلبية‬‫العمالء‬‫طلبوها‬‫الحالي‬ ‫الشهر‬ ‫في‬.
Abdullatif Tarakji
abdotarakji@gmail.com To create a select query in Design view
‫التصميم‬ ‫عرض‬ ‫في‬ ‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬
1. On the Create tab, in the Queries group, click Query Design.
2. In the Show Table dialog box, select the tables or queries you want
to use in the query. Click Add to add the objects to the Query
Designer, and then click Close.
3. From the field lists, drag the fields you want to include in the
query to the Field row in the query design grid. (You can also select
fields from the list that Access displays when you click the arrow in
the Field row in the query design grid.)
4. Define selection criteria for the query in the Criteria row and the
Or row depending on which records you want the query to return.
5. In the Results group on the Query Tools Design tool tab, click Run
to display the records returned by the query.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالم‬ ‫مجموعة‬ ‫في‬,‫االستعالم‬ ‫مصمم‬ ‫اضغط‬.
.2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫تريد‬ ‫الذي‬ ‫االستعالم‬ ‫أو‬ ‫الجدول‬ ‫اختر‬
‫االستعالم‬ ‫في‬ ‫استخدامه‬.‫ل‬ ‫الكائنات‬ ‫إلضافة‬ ‫إضافة‬ ‫على‬ ‫اضغط‬‫مصمم‬
‫االستعالم‬,‫اغالق‬ ‫اضغط‬ ‫ثم‬.
.3‫الحقول‬ ‫قائمة‬ ‫من‬,‫االس‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬‫الى‬ ‫تعالم‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬( .‫اختي‬ ً‫ا‬‫أيض‬ ‫يمكن‬‫الحقول‬ ‫ار‬
‫س‬ ‫في‬ ‫السهم‬ ‫على‬ ‫الضغط‬ ‫عند‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬‫طر‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقول‬.)
.4‫أو‬ ‫سطر‬ ‫و‬ ‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫المحددة‬ ‫المعايير‬ ‫عرف‬
‫استردادها‬ ‫تريد‬ ‫التي‬ ‫السجالت‬ ‫على‬ ‫باالعتماد‬.
.5‫التص‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫النتائج‬ ‫مجموعة‬ ‫في‬‫ميم‬,
‫لالستعالم‬ ‫المستردة‬ ‫السجالت‬ ‫إلظهار‬ ‫تشغيل‬ ‫اضغط‬.
Abdullatif Tarakji
abdotarakji@gmail.com
123
45
6
Abdullatif Tarakji
abdotarakji@gmail.com
To add tables to a query
1. Open the query in Design view.
2. On the Design tool tab, in the Query
Setup group, click Show Table.
3. In the Show Table dialog box, select
the tables or queries you want to
add, click Add, and then click Close.
To remove a table from a query
1. Open the query in Design view.
2. Right-click the field list for the table,
and then click Remove Table.
‫االستعالم‬ ‫الى‬ ‫جداول‬ ‫إلضافة‬:
.1‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫افتح‬.
.2‫التصميم‬ ‫أدوات‬ ‫تصميم‬ ‫من‬,‫اعداد‬ ‫مجموعة‬ ‫في‬
‫االستعالم‬,‫جدول‬ ‫إظهار‬ ‫اضغط‬.
.3‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫أو‬ ‫الجداول‬ ‫اختر‬
‫اضافتها‬ ‫تريد‬ ‫التي‬ ‫االستعالمات‬,‫إضافة‬ ‫اضغط‬,‫ثم‬‫اضغط‬
‫اغالق‬.
‫االستعالم‬ ‫من‬ ‫جدول‬ ‫إلزالة‬:
.1‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫افتح‬.
.2‫للجدول‬ ‫الحقل‬ ‫قائمة‬ ‫على‬ ‫اليمين‬ ‫ماوس‬ ‫زر‬ ‫اضغط‬,
‫جدول‬ ‫إزالة‬ ‫اضغط‬ ‫ثم‬.
Abdullatif Tarakji
abdotarakji@gmail.com Creating parameter queries
‫معلمة‬ ‫استعالمات‬ ‫إنشاء‬
• A parameter query (a type of select query) provides
flexibility in applying criteria. Instead of adding criteria
such as =”Los Angeles” to the City field, you define a
parameter for that field by using a format and prompt
such as [Enter City Name]. With a parameter defined, you
can use a single query to retrieve different sets of records
based on the value you enter for the parameter.
• To define a parameter, click in the Criteria row for the field
you want to work with, and then enter a prompt enclosed
in square brackets. For example, to create a parameter for
the City field, enter [Enter a city name] or a similar
prompt. When you run the query, Access displays the
Enter Parameter Value dialog box, which displays the
prompt you defined. Enter the value you want to use as
criteria (for example, Chicago or Montreal for the city
parameter), and then click OK. Access returns the set of
records that match the criteria you provide.
• The second step in defining a query parameter is to
specify the parameter’s data type. Click Parameters in the
Show/Hide group on the Query Tools Design tool tab. In
the Query Parameters dialog box, enter the parameter
name (including the brackets) just as it appears in the
design grid. In the Data Type column, select the data type
(such as Short Text or Date With Time) that matches the
field you defined the parameter for.
•‫المعلمة‬ ‫استعالم‬(‫تحديد‬ ‫استعالم‬ ‫من‬ ‫نوع‬ ‫وهو‬)‫تطبيق‬ ‫في‬ ‫المرونة‬ ‫يوفر‬‫المعايير‬.
‫مثل‬ ‫معايير‬ ‫إضافة‬ ‫من‬ ‫بدال‬" =‫أنجلوس‬ ‫لوس‬"‫إلى‬‫المدينة‬ ‫حقل‬‫ت‬ ‫أن‬ ‫عليك‬ ،‫حدد‬
‫باستخدام‬ ‫الحقل‬ ‫لهذا‬ ‫معلمة‬‫مثل‬ ‫المطالبة‬ ‫و‬ ‫التنسيق‬[‫مدينة‬ ‫اسم‬ ‫أدخل‬.]‫مع‬‫معلمة‬
‫السجال‬ ‫من‬ ‫مختلفة‬ ‫مجموعات‬ ‫السترداد‬ ‫واحد‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬ ،‫محددة‬‫ت‬
‫للمعلمة‬ ‫تدخلها‬ ‫التي‬ ‫القيمة‬ ‫إلى‬ ‫استنادا‬.
•‫العمل‬ ‫تريد‬ ‫لحقل‬ ‫معايير‬ ‫الصف‬ ‫في‬ ‫فوق‬ ‫انقر‬ ،‫معلمة‬ ‫لتعريف‬،‫به‬‫ومن‬‫أدخل‬ ‫ثم‬
‫المطالبة‬‫أقواس‬ ‫بين‬‫مربعة‬.‫مدي‬ ‫للحقل‬ ‫معلمة‬ ‫إلنشاء‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫أدخل‬ ،‫نة‬
[‫المدينة‬ ‫اسم‬ ‫أدخل‬]‫أو‬‫مماثلة‬ ‫مطالبة‬.‫يعرض‬ ،‫االستعالم‬ ‫تشغيل‬ ‫عند‬Access
‫يعرض‬ ‫الذي‬ ،‫معلمة‬ ‫قيمة‬ ‫إدخال‬ ‫الحوار‬ ‫مربع‬‫قمت‬ ‫التي‬ ‫المطالبة‬‫بتعريف‬‫ها‬.‫أدخل‬
‫كمعايير‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫القيمة‬(‫مو‬ ‫أو‬ ‫شيكاغو‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫نتلاير‬
‫المدينة‬ ‫للمعلمة‬)‫موافق‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ،.‫ال‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫وصول‬ ‫يعود‬‫تي‬
‫تقدمها‬ ‫التي‬ ‫المعايير‬ ‫تطابق‬.
•‫المعلمة‬ ‫بيانات‬ ‫نوع‬ ‫لتحديد‬ ‫االستعالم‬ ‫معلمة‬ ‫تحديد‬ ‫في‬ ‫الثانية‬ ‫الخطوة‬.‫فوق‬ ‫انقر‬
‫إظهار‬ ‫المجموعة‬ ‫في‬ ‫معلمات‬/‫أدوات‬ ‫على‬ ‫إخفاء‬‫تبويب‬ ‫استعالم‬‫تصمي‬ ‫أداة‬‫م‬.‫في‬
‫المعلمة‬ ‫اسم‬ ‫أدخل‬ ،‫معلمات‬ ‫استعالم‬ ‫الحوار‬ ‫مربع‬(‫األقواس‬ ‫ذلك‬ ‫في‬ ‫بما‬)‫تما‬‫ما‬
‫التصميم‬ ‫شبكة‬ ‫في‬ ‫يظهر‬ ‫كما‬.‫البيا‬ ‫نوع‬ ‫حدد‬ ،‫البيانات‬ ‫نوع‬ ‫العمود‬ ‫في‬‫نات‬(‫مثل‬
‫الوقت‬ ‫مع‬ ‫التاريخ‬ ‫أو‬ ‫قصير‬ ‫نص‬)‫يطابق‬ ‫الذي‬‫حقل‬‫بتعريفه‬ ‫قمت‬‫للمع‬‫لمة‬.
Abdullatif Tarakji
abdotarakji@gmail.com To define a parameter for a query
‫لالستعالم‬ ‫معلمة‬ ‫لتعريف‬
1. In the Navigation pane, right-click the
query, and then click Design View.
2. Enter the parameter in the Criteria
row, enclosing the parameter in
square brackets.
3. In the Show/Hide group, click
Parameters.
4. In the Query Parameters dialog box,
in the Parameter column, enter the
parameter exactly as it appears in the
design grid. In the Data Type column,
select the data type for the
parameter, and then click OK.
.1‫االستعال‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬ ‫التنقل‬ ‫جزء‬ ‫من‬‫م‬,‫ثم‬
‫تصميم‬ ‫عرض‬ ‫اضغط‬.
.2‫المعايير‬ ‫سطر‬ ‫في‬ ‫المعلمة‬ ‫ادخل‬,‫المعلمة‬ ‫أغلق‬
‫مربعات‬ ‫بقوسين‬.
.3‫إخفاء‬ ‫و‬ ‫اظهار‬ ‫مجموعة‬ ‫من‬,‫معلمات‬ ‫اضغط‬.
.4‫االستعالم‬ ‫معلمات‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫المعلم‬ ‫عمود‬ ‫في‬‫ة‬,
‫الت‬ ‫شبكة‬ ‫في‬ ‫تظهر‬ ‫التي‬ ‫المعلمة‬ ‫بالضبط‬ ‫ادخل‬‫صميم‬.
‫البيانات‬ ‫نوع‬ ‫عمود‬ ‫في‬,‫للم‬ ‫البيانات‬ ‫نوع‬ ‫اختر‬‫علمة‬,‫ثم‬
‫موافق‬ ‫اضغط‬.
Abdullatif Tarakji
abdotarakji@gmail.com

More Related Content

What's hot

Lesson5 Print and export databases
Lesson5 Print and export databases Lesson5 Print and export databases
Lesson5 Print and export databases
Abdullatif Tarakji
 
Lesson14 Create Forms
Lesson14 Create FormsLesson14 Create Forms
Lesson14 Create Forms
Abdullatif Tarakji
 
Lesson4 Protect and maintain databases
Lesson4 Protect and maintain databases Lesson4 Protect and maintain databases
Lesson4 Protect and maintain databases
Abdullatif Tarakji
 
Lesson17 Create Reports
Lesson17 Create ReportsLesson17 Create Reports
Lesson17 Create Reports
Abdullatif Tarakji
 
Lesson18 Set Report Controls
Lesson18 Set Report ControlsLesson18 Set Report Controls
Lesson18 Set Report Controls
Abdullatif Tarakji
 
School database
School databaseSchool database
School database
Abdullatif Tarakji
 
Lesson3 Navigate through databases
Lesson3 Navigate through databases Lesson3 Navigate through databases
Lesson3 Navigate through databases
Abdullatif Tarakji
 
Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال
BedourAli1
 
Microsoft Word 2010 - Technical Skills Training
Microsoft Word 2010 - Technical Skills TrainingMicrosoft Word 2010 - Technical Skills Training
Microsoft Word 2010 - Technical Skills Training
Asia Master Training آسيا ماسترز للتدريب والتطوير
 
Thesis format using Ms Word
Thesis format using Ms WordThesis format using Ms Word
Thesis format using Ms Word
ALI ELROWAYATI
 
خطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكوخطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكوMostafa Gawdat
 

What's hot (11)

Lesson5 Print and export databases
Lesson5 Print and export databases Lesson5 Print and export databases
Lesson5 Print and export databases
 
Lesson14 Create Forms
Lesson14 Create FormsLesson14 Create Forms
Lesson14 Create Forms
 
Lesson4 Protect and maintain databases
Lesson4 Protect and maintain databases Lesson4 Protect and maintain databases
Lesson4 Protect and maintain databases
 
Lesson17 Create Reports
Lesson17 Create ReportsLesson17 Create Reports
Lesson17 Create Reports
 
Lesson18 Set Report Controls
Lesson18 Set Report ControlsLesson18 Set Report Controls
Lesson18 Set Report Controls
 
School database
School databaseSchool database
School database
 
Lesson3 Navigate through databases
Lesson3 Navigate through databases Lesson3 Navigate through databases
Lesson3 Navigate through databases
 
Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال
 
Microsoft Word 2010 - Technical Skills Training
Microsoft Word 2010 - Technical Skills TrainingMicrosoft Word 2010 - Technical Skills Training
Microsoft Word 2010 - Technical Skills Training
 
Thesis format using Ms Word
Thesis format using Ms WordThesis format using Ms Word
Thesis format using Ms Word
 
خطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكوخطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكو
 

Viewers also liked

Lesson16 Format Forms
Lesson16 Format FormsLesson16 Format Forms
Lesson16 Format Forms
Abdullatif Tarakji
 
Lesson13 Utilize calculated fields
Lesson13 Utilize calculated fieldsLesson13 Utilize calculated fields
Lesson13 Utilize calculated fields
Abdullatif Tarakji
 
School database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.comSchool database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.com
Abdullatif Tarakji
 
Lesson15 Set Form Controls
Lesson15 Set Form ControlsLesson15 Set Form Controls
Lesson15 Set Form Controls
Abdullatif Tarakji
 
Oca sql
Oca sqlOca sql
Oca sql
rdctnawaf
 
تخطيط قاعده بيانات مدرسه
تخطيط قاعده بيانات مدرسهتخطيط قاعده بيانات مدرسه
تخطيط قاعده بيانات مدرسه
Omar Computer Teacher
 
Databases قواعد البيانات
Databases قواعد البيانات  Databases قواعد البيانات
Databases قواعد البيانات
Mohamed Reda
 
أساسيات قواعد البيانات
أساسيات قواعد البياناتأساسيات قواعد البيانات
أساسيات قواعد البيانات
Bandar Alhazmi
 
كتابة وإعداد التقارير
كتابة وإعداد التقارير كتابة وإعداد التقارير
كتابة وإعداد التقارير
Dr. Abeer Alaqabawi
 
اسئلة قواعد البيانات
اسئلة قواعد البياناتاسئلة قواعد البيانات
اسئلة قواعد البيانات
Mohamed Sayed
 
مراحل بناء قاعدة البيانات
مراحل بناء قاعدة البياناتمراحل بناء قاعدة البيانات
مراحل بناء قاعدة البياناتgueste5de3d
 
قواعد البيانات
قواعد البياناتقواعد البيانات
قواعد البياناتMoselhy Hussein
 
مشروع قواعد البيانات
مشروع قواعد البيانات مشروع قواعد البيانات
مشروع قواعد البيانات
Safiya Najeh
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
farwa waqar
 
نظم قواعد البيانات
نظم قواعد البياناتنظم قواعد البيانات
نظم قواعد البيانات
Fida Kadun
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
SlideShare
 

Viewers also liked (16)

Lesson16 Format Forms
Lesson16 Format FormsLesson16 Format Forms
Lesson16 Format Forms
 
Lesson13 Utilize calculated fields
Lesson13 Utilize calculated fieldsLesson13 Utilize calculated fields
Lesson13 Utilize calculated fields
 
School database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.comSchool database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.com
 
Lesson15 Set Form Controls
Lesson15 Set Form ControlsLesson15 Set Form Controls
Lesson15 Set Form Controls
 
Oca sql
Oca sqlOca sql
Oca sql
 
تخطيط قاعده بيانات مدرسه
تخطيط قاعده بيانات مدرسهتخطيط قاعده بيانات مدرسه
تخطيط قاعده بيانات مدرسه
 
Databases قواعد البيانات
Databases قواعد البيانات  Databases قواعد البيانات
Databases قواعد البيانات
 
أساسيات قواعد البيانات
أساسيات قواعد البياناتأساسيات قواعد البيانات
أساسيات قواعد البيانات
 
كتابة وإعداد التقارير
كتابة وإعداد التقارير كتابة وإعداد التقارير
كتابة وإعداد التقارير
 
اسئلة قواعد البيانات
اسئلة قواعد البياناتاسئلة قواعد البيانات
اسئلة قواعد البيانات
 
مراحل بناء قاعدة البيانات
مراحل بناء قاعدة البياناتمراحل بناء قاعدة البيانات
مراحل بناء قاعدة البيانات
 
قواعد البيانات
قواعد البياناتقواعد البيانات
قواعد البيانات
 
مشروع قواعد البيانات
مشروع قواعد البيانات مشروع قواعد البيانات
مشروع قواعد البيانات
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
 
نظم قواعد البيانات
نظم قواعد البياناتنظم قواعد البيانات
نظم قواعد البيانات
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
 

Similar to Lesson10 Create Queries

Lesson12 Modify Queries
Lesson12 Modify QueriesLesson12 Modify Queries
Lesson12 Modify Queries
Abdullatif Tarakji
 
hz-ilovepdf-compressed
hz-ilovepdf-compressedhz-ilovepdf-compressed
hz-ilovepdf-compressed
hak moon
 
follow up presentation GN.pptx
follow up presentation GN.pptxfollow up presentation GN.pptx
follow up presentation GN.pptx
gracen3meh1
 
ادارة قواعد البيانات.pptx
ادارة قواعد البيانات.pptxادارة قواعد البيانات.pptx
ادارة قواعد البيانات.pptx
AhmedOthman511332
 
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdfكل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
Bahaa Al Zubaidi
 
Course lab
Course labCourse lab
Course labashwaq76
 
Course lab
Course labCourse lab
Course labashwaq76
 
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
Molham Al-Maleh
 
مذكرة استبانة
مذكرة  استبانةمذكرة  استبانة
مذكرة استبانةmariamalkandari
 
Www.kutub.info 5727
Www.kutub.info 5727Www.kutub.info 5727
Www.kutub.info 5727Adel Totott
 
Ms project
Ms  projectMs  project
خطة اختبار لنظام المودل للتعليم الالكتروني
خطة اختبار لنظام المودل للتعليم الالكترونيخطة اختبار لنظام المودل للتعليم الالكتروني
خطة اختبار لنظام المودل للتعليم الالكتروني
Shadi Akil
 
مقدمة عن بايثون / جانقو
مقدمة عن بايثون / جانقومقدمة عن بايثون / جانقو
مقدمة عن بايثون / جانقو
lunarhalo
 
Kau web registeration user-guide
Kau   web registeration user-guideKau   web registeration user-guide
Kau web registeration user-guide
Nour Elbader
 
Kau web registeration user-guide
Kau   web registeration user-guideKau   web registeration user-guide
Kau web registeration user-guide
roky hay
 
Build a BPM center
Build a BPM centerBuild a BPM center
Build a BPM center
Houssam asaad
 
functional requirements and non functional requirements
functional requirements and non functional requirementsfunctional requirements and non functional requirements
functional requirements and non functional requirements
AliMohammad155
 
الفصل الثانى
الفصل الثانىالفصل الثانى
الفصل الثانى
Hanaa Ahmed
 

Similar to Lesson10 Create Queries (20)

Lesson12 Modify Queries
Lesson12 Modify QueriesLesson12 Modify Queries
Lesson12 Modify Queries
 
hz-ilovepdf-compressed
hz-ilovepdf-compressedhz-ilovepdf-compressed
hz-ilovepdf-compressed
 
follow up presentation GN.pptx
follow up presentation GN.pptxfollow up presentation GN.pptx
follow up presentation GN.pptx
 
ادارة قواعد البيانات.pptx
ادارة قواعد البيانات.pptxادارة قواعد البيانات.pptx
ادارة قواعد البيانات.pptx
 
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdfكل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
كل ما تحتاج لمعرفته حول اختبار البيانات الضخمة.pdf
 
Course lab
Course labCourse lab
Course lab
 
Course lab
Course labCourse lab
Course lab
 
Manual (4)
Manual (4)Manual (4)
Manual (4)
 
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
Bootstrap 4 وتطوير قسم المستخدم باستخدام Angular 4
 
مذكرة استبانة
مذكرة  استبانةمذكرة  استبانة
مذكرة استبانة
 
Access
AccessAccess
Access
 
Www.kutub.info 5727
Www.kutub.info 5727Www.kutub.info 5727
Www.kutub.info 5727
 
Ms project
Ms  projectMs  project
Ms project
 
خطة اختبار لنظام المودل للتعليم الالكتروني
خطة اختبار لنظام المودل للتعليم الالكترونيخطة اختبار لنظام المودل للتعليم الالكتروني
خطة اختبار لنظام المودل للتعليم الالكتروني
 
مقدمة عن بايثون / جانقو
مقدمة عن بايثون / جانقومقدمة عن بايثون / جانقو
مقدمة عن بايثون / جانقو
 
Kau web registeration user-guide
Kau   web registeration user-guideKau   web registeration user-guide
Kau web registeration user-guide
 
Kau web registeration user-guide
Kau   web registeration user-guideKau   web registeration user-guide
Kau web registeration user-guide
 
Build a BPM center
Build a BPM centerBuild a BPM center
Build a BPM center
 
functional requirements and non functional requirements
functional requirements and non functional requirementsfunctional requirements and non functional requirements
functional requirements and non functional requirements
 
الفصل الثانى
الفصل الثانىالفصل الثانى
الفصل الثانى
 

Recently uploaded

عرض حول كيفية منهجية التراسل الاداري.pptx
عرض حول  كيفية منهجية التراسل الاداري.pptxعرض حول  كيفية منهجية التراسل الاداري.pptx
عرض حول كيفية منهجية التراسل الاداري.pptx
miloudaitblal001
 
تطبيقات الواقع المعزز في التعليم والتعلم.pdf
تطبيقات الواقع المعزز في التعليم والتعلم.pdfتطبيقات الواقع المعزز في التعليم والتعلم.pdf
تطبيقات الواقع المعزز في التعليم والتعلم.pdf
joreyaa
 
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdfأهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
elmadrasah8
 
استراتيجية شبة المحسوس والمحسوس والمجرد.pptx
استراتيجية شبة المحسوس والمحسوس والمجرد.pptxاستراتيجية شبة المحسوس والمحسوس والمجرد.pptx
استراتيجية شبة المحسوس والمحسوس والمجرد.pptx
rabieazaz8
 
مدخل الى مجال المقاربات البيداغوجية .pdf
مدخل الى مجال المقاربات البيداغوجية .pdfمدخل الى مجال المقاربات البيداغوجية .pdf
مدخل الى مجال المقاربات البيداغوجية .pdf
AhmedLansary1
 
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARIPPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
RadaIsdasari
 

Recently uploaded (6)

عرض حول كيفية منهجية التراسل الاداري.pptx
عرض حول  كيفية منهجية التراسل الاداري.pptxعرض حول  كيفية منهجية التراسل الاداري.pptx
عرض حول كيفية منهجية التراسل الاداري.pptx
 
تطبيقات الواقع المعزز في التعليم والتعلم.pdf
تطبيقات الواقع المعزز في التعليم والتعلم.pdfتطبيقات الواقع المعزز في التعليم والتعلم.pdf
تطبيقات الواقع المعزز في التعليم والتعلم.pdf
 
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdfأهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
أهمية تعليم البرمجة للأطفال في العصر الرقمي.pdf
 
استراتيجية شبة المحسوس والمحسوس والمجرد.pptx
استراتيجية شبة المحسوس والمحسوس والمجرد.pptxاستراتيجية شبة المحسوس والمحسوس والمجرد.pptx
استراتيجية شبة المحسوس والمحسوس والمجرد.pptx
 
مدخل الى مجال المقاربات البيداغوجية .pdf
مدخل الى مجال المقاربات البيداغوجية .pdfمدخل الى مجال المقاربات البيداغوجية .pdf
مدخل الى مجال المقاربات البيداغوجية .pdf
 
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARIPPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
PPT SEMINAR HASIL PRODI BAHASA DAN SASTRA ARAB RADA ISDA SARI
 

Lesson10 Create Queries

  • 1. Abdullatif Tarakji abdotarakji@gmail.com Create queries Create a query ‫استعالم‬ ‫إنشاء‬- Modify queries ‫االستعالمات‬ ‫تعديل‬- Utilize calculated fields and grouping within queries ‫االستعالمات‬ ‫في‬ ‫تضمينها‬ ‫و‬ ‫المحسوبة‬ ‫الحقول‬ ‫استخدام‬
  • 2. Abdullatif Tarakji abdotarakji@gmail.com Create a query ‫استعالم‬ ‫إنشاء‬- • Running queries ‫االستعالمات‬ ‫تشغيل‬ • Saving and deleting queries ‫االستعالمات‬ ‫حذف‬ ‫و‬ ‫حفظ‬ • Creating select queries ‫التحديد‬ ‫استعالمات‬ ‫إنشاء‬ • Using the Simple Query wizard ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫استخدام‬ • Using the Query Designer ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬ • Creating parameter queries ‫معلمة‬ ‫استعالمات‬ ‫إنشاء‬
  • 3. Abdullatif Tarakji abdotarakji@gmail.com • Queries help you manage database records, locate records that match specific criteria, and analyze data. For example, a make-table query or an append query (two types of action queries) are often used to archive records. With a select query, you can retrieve records for all orders or add criteria to select a specific set of records (for example, only orders placed within the past 90 days that exceed a certain dollar amount). • This chapter guides you in studying methods for creating queries. It also describes how to manage tables and relationships in queries. In addition, the chapter explains how to manage fields and sort records in a query, how to group and summarize values, how to create calculated fields, and how to work with expressions and operators to define query criteria. •‫البيانات‬ ‫قاعدة‬ ‫سجالت‬ ‫بإدارة‬ ‫تساعدك‬ ‫االستعالمات‬,‫ت‬‫حديد‬ ‫محددة‬ ‫معايير‬ ‫تطابق‬ ‫التي‬ ‫السجالت‬,‫البيان‬ ‫تحليل‬ ‫و‬‫ات‬.‫كمثال‬ ‫جدولي‬ ‫استعالم‬ ‫انشاء‬,‫استعالم‬ ‫إلحاق‬(‫من‬ ‫نوعين‬ ‫النشطة‬ ‫االستعالمات‬)‫السجال‬ ‫ألرشفة‬ ‫تستخدم‬ ً‫ا‬‫غالب‬‫ت‬.‫مع‬ ‫التحديد‬ ‫استعالم‬,‫ال‬ ‫لكافة‬ ‫السجالت‬ ‫استرجاع‬ ‫يمكنك‬‫أو‬ ‫طلبيات‬ ‫المحددة‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫الختيار‬ ‫معايير‬ ‫إضافة‬ (‫كمثال‬,‫آخر‬ ‫وضعت‬ ‫التي‬ ‫الطلبيات‬ ‫فقط‬90‫التي‬ ‫و‬ ‫يوم‬ ‫المال‬ ‫من‬ ‫معين‬ ‫مقدار‬ ‫تزيد‬. •‫االستعالم‬ ‫انشاء‬ ‫أساليب‬ ‫دراسة‬ ‫على‬ ‫يدلك‬ ‫الدرس‬ ‫هذا‬.‫أي‬ً‫ا‬‫ض‬ ‫االستعالم‬ ‫في‬ ‫العالقات‬ ‫و‬ ‫الجداول‬ ‫إدارة‬ ‫كيفية‬ ‫تشرح‬. ‫باإلضافة‬,‫ال‬ ‫فرز‬ ‫و‬ ‫الحقول‬ ‫إدارة‬ ‫كيفية‬ ‫يشرح‬ ‫الدرس‬‫سجالت‬ ‫االستعالم‬ ‫في‬,‫القيم‬ ‫جمع‬ ‫و‬ ‫تجميع‬ ‫كيفية‬,‫ان‬ ‫كيفية‬‫الحقول‬ ‫شاء‬ ‫المحسوبة‬,‫ل‬ ‫المشغالت‬ ‫و‬ ‫التعابير‬ ‫مع‬ ‫العمل‬ ‫كيفية‬ ‫و‬‫تعريف‬ ‫االستعالم‬ ‫معايير‬.
  • 4. Abdullatif Tarakji abdotarakji@gmail.com Running queries ‫االستعالمات‬ ‫تشغيل‬ • The simplest way to run a query is to double-click its entry in the Navigation pane. This action displays the query’s results in Datasheet view, where you can then sort and filter the records, export the query’s data, and perform other operations. You can also right-click a query in the Navigation pane and then click Open to run the query. • In the Query Designer, as you add or remove fields and define criteria and other query properties, use the Run command in the Results group (on the Query Tools Design tool tab) to view the records that the query returns. You can return to Design view (by using the View menu on the Home tab), make additional modifications to the query, and then run the query again to check the effects of the changes. To run a query • In the Navigation pane, double-click the query. • In Design view, click Run on the Query Tools Design tool tab. •‫نقرتين‬ ‫بالضغط‬ ‫هي‬ ‫االستعالم‬ ‫لتشغيل‬ ‫األبسط‬ ‫الطريقة‬‫على‬ ‫التنقل‬ ‫جزء‬ ‫نافذة‬ ‫من‬ ‫المطلوب‬ ‫االستعالم‬.‫تظهر‬ ‫الطريقة‬ ‫هذه‬‫نتائج‬ ‫البيانات‬ ‫ورقة‬ ‫عرض‬ ‫في‬ ‫االستعالم‬,‫تص‬ ‫و‬ ‫فرز‬ ‫يمكنك‬ ‫حيث‬‫فية‬ ‫السجالت‬,‫االستعالم‬ ‫بيانات‬ ‫تصدير‬,‫أخرى‬ ‫عمليات‬ ‫انجاز‬ ‫و‬. ‫في‬ ‫االستعالم‬ ‫على‬ ‫اليمين‬ ‫ماوس‬ ‫بزر‬ ‫الضغط‬ ً‫ا‬‫ايض‬ ‫يمكنك‬‫جزء‬ ‫االستعالم‬ ‫لتشغيل‬ ‫فتح‬ ‫أمر‬ ‫اضغط‬ ‫ثم‬ ‫التنقل‬. •‫تعريف‬ ‫و‬ ‫الحقول‬ ‫إزالة‬ ‫و‬ ‫إضافة‬ ‫حيث‬ ‫االستعالم‬ ‫مصمم‬ ‫من‬ ‫لالستعالم‬ ‫أخرى‬ ‫خصائص‬ ‫و‬ ‫المعايير‬,‫م‬ ‫تشغيل‬ ‫أمر‬ ‫استخدم‬‫ن‬ ‫النتائج‬ ‫مجموعة‬(‫التصمي‬ ‫أدوات‬ ‫االستعالم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬‫م‬), ‫لالستعالم‬ ‫إضافية‬ ‫تعديالت‬ ‫بعمل‬ ‫نقوم‬,‫االست‬ ‫تشغيل‬ ‫ثم‬‫مرة‬ ‫عالم‬ ‫التغيير‬ ‫تأثيرات‬ ‫لتدقيق‬ ‫أخرى‬. ‫االستعالم‬ ‫لتشغيل‬: •‫التنقل‬ ‫جزء‬ ‫من‬,‫االستعالم‬ ‫على‬ ‫نقرتين‬ ‫اضغط‬. •‫التصميم‬ ‫عرض‬ ‫من‬,‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫تشغيل‬ ‫على‬ ‫اضغط‬ ‫التصميم‬ ‫أداة‬ ‫تبويب‬.
  • 5. Abdullatif Tarakji abdotarakji@gmail.com .1‫التنقل‬ ‫جزء‬ ‫من‬, ‫عل‬ ‫نقرتين‬ ‫اضغط‬‫ى‬ ‫االستعالم‬. .2‫عل‬ ‫يمين‬ ‫كليك‬ ‫أو‬‫ى‬ ‫اضغط‬ ‫و‬ ‫االستعالم‬ ‫القائمة‬ ‫من‬ ‫فتح‬ ‫المختصرة‬ ‫التصميم‬ ‫عرض‬ ‫من‬,‫أدوات‬ ‫من‬ ‫تشغيل‬ ‫على‬ ‫اضغط‬ ‫تبويب‬ ‫االستعالم‬‫نتائج‬ ‫مجموعة‬ ‫من‬ ‫التصميم‬.
  • 6. Abdullatif Tarakji abdotarakji@gmail.com Saving and deleting queries ‫االستعالمات‬ ‫حذف‬ ‫و‬ ‫حفظ‬ • Access automatically saves a query you create by using one of the query wizards. When you design a query from scratch in the Query Designer, Access assigns a default name to the query (Query1, for example). To name and save the query, click the Save button on the Quick Access Toolbar, or click 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 query as a new database object (by choosing 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 query that’s already designed (by adding additional selection criteria, for example) and don’t want to risk inadvertent changes to the original query. • To delete a query from a database, right-click the query in the Navigation pane, and then click Delete. Queries are often used as the record source for forms and reports. If you delete a query that’s the basis of a form or report, you need to update the record source before you can use the form or report to view records. •‫بواسط‬ ‫المنشئ‬ ‫االستعالم‬ ً‫ا‬‫تلقائي‬ ‫يحفظ‬ ‫األكسيس‬ ‫برنامج‬‫معالج‬ ‫ة‬ ‫االستعالمات‬.‫االستعالم‬ ‫مصمم‬ ‫في‬ ‫االستعالم‬ ‫تصميم‬ ‫عند‬,‫ب‬‫رنامج‬ ‫لالستعالم‬ ‫افتراضي‬ ‫اسم‬ ‫يحدد‬ ‫االكسيس‬(‫استعالم‬1‫كمثال‬.)‫و‬ ‫لتسمية‬ ‫السريع‬ ‫األدوات‬ ‫شريط‬ ‫من‬ ‫حفظ‬ ‫زر‬ ‫على‬ ‫اضغط‬ ‫االستعالم‬ ‫حفظ‬,‫أو‬ ‫ملف‬ ‫قائمة‬ ‫العمل‬ ‫منصة‬ ‫عرض‬ ‫من‬ ‫حفظ‬ ‫امر‬ ‫على‬ ‫اضغط‬. •‫إل‬ ‫ملف‬ ‫قائمة‬ ‫من‬ ‫باسم‬ ‫حفظ‬ ‫صفحة‬ ‫في‬ ‫الخيارات‬ ‫استخدام‬ ‫يمكن‬‫نشاء‬ ‫حفظ‬ ‫باختيارك‬ ‫جديد‬ ‫بيانات‬ ‫قاعدة‬ ‫ككائن‬ ‫االستعالم‬ ‫من‬ ‫نسخة‬‫ككائن‬, ‫كملف‬ ‫أو‬PDF‫كملف‬ ‫أو‬XPS.‫اذا‬ ‫مساعدتك‬ ‫يمكنه‬ ‫كأمر‬ ‫كائن‬ ‫حفظ‬ ً‫ا‬‫اساس‬ ‫مصمم‬ ‫استعالم‬ ‫مع‬ ‫تجربته‬ ‫تريد‬ ‫كنت‬(‫معيار‬ ‫بإضافة‬‫تحديد‬ ‫كمثال‬ ‫محدد‬)‫األصلي‬ ‫لالستعالم‬ ‫تحدث‬ ‫مخاطر‬ ‫أي‬ ‫تريد‬ ‫ال‬ ‫و‬. •‫البيانات‬ ‫قاعدة‬ ‫من‬ ‫استعالم‬ ‫لحذف‬,‫اال‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬‫ستعالم‬ ‫حذف‬ ‫على‬ ‫اضغط‬ ‫ثم‬ ‫المهام‬ ‫جزء‬ ‫نافذة‬ ‫في‬.ً‫ا‬‫غالب‬ ‫االستعالمات‬ ‫التقارير‬ ‫و‬ ‫للنماذج‬ ‫السجل‬ ‫مصدر‬ ‫تستخدم‬.‫است‬ ‫بحذف‬ ‫قمت‬ ‫اذا‬‫و‬ ‫عالم‬ ‫تقرير‬ ‫او‬ ‫لنموذج‬ ‫أساسي‬ ‫هو‬,‫قب‬ ‫السجل‬ ‫مصدر‬ ‫لتحديث‬ ‫تحتاج‬‫ان‬ ‫ل‬ ‫السجالت‬ ‫لعرض‬ ‫التقرير‬ ‫و‬ ‫النموذج‬ ‫تستخدم‬.
  • 7. Abdullatif Tarakji abdotarakji@gmail.com To save a query ‫استعالم‬ ‫لحفظ‬- 1. On the Quick Access Toolbar, click Save. 2. In the Save As dialog box, enter a name for the query and then click OK. .1‫حفظ‬ ‫اضغط‬ ‫السريع‬ ‫األدوات‬ ‫شريط‬ ‫من‬. .2‫مواف‬ ‫على‬ ‫اضغط‬ ‫ثم‬ ‫االستعالم‬ ‫اسم‬ ‫أدخل‬ ‫باسم‬ ‫حفظ‬ ‫حوار‬ ‫صندوق‬ ‫من‬‫ق‬. To delete a query ‫استعالم‬ ‫لحذف‬- In the Navigation pane, right-click the query, and then click Delete. ‫االستع‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬ ‫التنقل‬ ‫جزء‬ ‫نافذة‬ ‫من‬‫الم‬ ‫حذف‬ ‫اضغط‬ ‫ثم‬ ‫حذفه‬ ‫المطلوب‬
  • 8. Abdullatif Tarakji abdotarakji@gmail.com Creating select queries ‫التحديد‬ ‫استعالمات‬ ‫إنشاء‬ • A select query returns all or a subset of the records stored in one or more tables. When creating a select query, you specify which fields you want to use, and you can also define criteria to return a specific set of records. One simple use for a select query is to set up a record source for a mailing list. For example, by using a contacts table as the basis for the query, you could include name, address, and related fields in the query without adding fields for a contact’s email address and phone number. If you’re sending a mailing to contacts in specific locations, you could define criteria that limits the records the query returns to contacts in the particular cities or postal codes you designate. • Select queries (and queries of other types) also illustrate the purpose of table relationships. You can add two or more tables to a query and use their relationship to retrieve a set of records from all the tables—for example, all high-priority tasks related to projects for a particular customer, managed by a specific employee, and with a completion date within 30 days. • To create a select query, you can use the Simple Query wizard or build the query by using the Query Designer. Use the Query Designer if you want to add criteria to the query. •‫تحديد‬ ‫استعالم‬‫أو‬ ‫السجالت‬ ‫كافة‬ ‫بإرجاع‬ ‫يقوم‬‫السجالت‬ ‫من‬ ‫فرعية‬ ‫مجموعة‬ ‫أكثر‬ ‫أو‬ ‫واحد‬ ‫جدول‬ ‫في‬ ‫المخزنة‬.‫ال‬ ‫تحديد‬ ‫يمكنك‬ ،‫تحديد‬ ‫استعالم‬ ‫إنشاء‬ ‫عند‬‫حقول‬ ‫من‬ ‫محددة‬ ‫مجموعة‬ ‫إلرجاع‬ ‫معايير‬ ‫تحديد‬ ‫أيضا‬ ‫ويمكنك‬ ،‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫السجالت‬.‫استعالم‬ ‫الستخدام‬ ‫بسيطة‬ ‫طريقة‬‫هو‬ ‫تحديد‬‫اعداد‬‫للح‬ ‫سجل‬ ‫مصدر‬‫صول‬ ‫بريدية‬ ‫قائمة‬ ‫على‬.‫كأساس‬ ‫االتصاالت‬ ‫الجدول‬ ‫باستخدام‬ ،‫المثال‬ ‫سبيل‬ ‫على‬ ،‫لالستعالم‬‫يمكن‬‫أن‬‫االسم‬ ‫االستعالم‬ ‫يشمل‬،‫والعنوان‬‫وحقول‬‫ف‬ ‫الصلة‬ ‫ذات‬‫ي‬ ‫ورقم‬ ‫االتصال‬ ‫لجهة‬ ‫اإللكتروني‬ ‫البريد‬ ‫لعنوان‬ ‫حقول‬ ‫إضافة‬ ‫دون‬ ‫االستعالم‬‫الهاتف‬. ‫بإرسال‬ ‫تقوم‬ ‫كنت‬ ‫إذا‬‫البريد‬،‫محددة‬ ‫مواقع‬ ‫في‬ ‫االتصال‬ ‫لجهات‬‫يمكن‬‫تحدد‬ ‫أن‬ ‫مدن‬ ‫في‬ ‫االتصال‬ ‫جهات‬ ‫إلى‬ ‫بإرجاع‬ ‫االستعالم‬ ‫سجالت‬ ‫من‬ ‫تحد‬ ‫التي‬ ‫المعايير‬‫معينة‬ ‫التي‬ ‫البريدية‬ ‫الرموز‬ ‫أو‬‫تصمم‬. •‫التحديد‬ ‫استعالمات‬(‫أنواع‬ ‫من‬ ‫واستعالمات‬‫أخرى‬)‫أيضا‬‫توضح‬‫من‬ ‫الغرض‬ ‫الجدول‬ ‫عالقات‬.‫الجداول‬ ‫من‬ ‫أكثر‬ ‫أو‬ ‫اثنين‬ ‫إضافة‬ ‫يمكنك‬‫لالستعالم‬‫واستخد‬‫ام‬ ‫سبيل‬ ‫على‬ ،‫الجداول‬ ‫كافة‬ ‫من‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫السترداد‬ ‫بينهما‬ ‫العالقة‬ ،‫معين‬ ‫لعميل‬ ‫بالمشاريع‬ ‫المتعلقة‬ ‫العالية‬ ‫األولوية‬ ‫ذات‬ ‫المهام‬ ‫جميع‬ ،‫المثال‬‫يديرها‬ ‫غضون‬ ‫في‬ ‫االنتهاء‬ ‫تاريخ‬ ‫وجود‬ ‫مع‬ ،‫معين‬ ‫موظف‬30‫يوما‬. •‫االس‬ ‫بناء‬ ‫أو‬ ‫بسيط‬ ‫استعالم‬ ‫معالج‬ ‫استخدام‬ ‫يمكنك‬ ،‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬‫تعالم‬ ‫االستعالم‬ ‫مصمم‬ ‫باستخدام‬.‫إض‬ ‫في‬ ‫ترغب‬ ‫كنت‬ ‫إذا‬ ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬‫افة‬ ‫إلى‬ ‫معايير‬‫االستعالم‬.
  • 9. Abdullatif Tarakji abdotarakji@gmail.com Using the Simple Query wizard ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫استخدام‬ • To start the Simple Query wizard, click Query Wizard in the Queries group on the Create tab. In the New Query dialog box, select Simple Query Wizard. In the next step, add fields from one or more tables (or queries) to define the query you’re creating. The Simple Query wizard tailors its steps based on factors such as the following: • If you add fields from only one table and those fields store only text data (not numeric data), the third and last step is to provide a name for the query and then specify whether to open the query to view the records it returns or open the query in Design view for modification. • If you include numeric or date fields or fields from more than one table, the wizard prompts you to create a detail query or a summary query. A detail query shows each individual record for the query. In a summary query, you can total the values in a field or determine the field’s average, minimum, or maximum value. • When date fields are present in a summary query, the wizard also prompts you to choose an option for how you want to group records by dates. For example, you can group records by month, quarter, or year. •‫استعال‬ ‫مجموعة‬ ‫في‬ ‫االستعالم‬ ‫معالج‬ ‫فوق‬ ‫انقر‬ ،‫بسيط‬ ‫استعالم‬ ‫معالج‬ ‫لبدء‬‫في‬ ‫مات‬ ‫إنشاء‬ ‫التبويب‬ ‫عالمة‬.‫ب‬ ‫استعالم‬ ‫معالج‬ ‫حدد‬ ،‫جديد‬ ‫استعالم‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫سيط‬. ‫الجداول‬ ‫من‬ ‫أكثر‬ ‫أو‬ ‫واحد‬ ‫من‬ ‫حقول‬ ‫إضافة‬ ،‫التالية‬ ‫الخطوة‬ ‫في‬(‫أو‬‫االستعالمات‬) ‫االستعالم‬ ‫لتحديد‬‫إنشائه‬ ‫تريد‬ ‫الذي‬. ‫التالية‬ ‫العوامل‬ ‫حسب‬ ‫على‬ ‫بعضها‬ ‫مع‬ ‫مرتبطة‬ ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫خطوات‬: •‫إذا‬‫الحقول‬ ‫وتلك‬ ،‫فقط‬ ‫واحد‬ ‫جدول‬ ‫من‬ ‫حقول‬ ‫بإضافة‬ ‫قمت‬‫تخزن‬‫البيانات‬‫النص‬‫ية‬ ‫فقط‬(‫الرقمية‬ ‫البيانات‬ ‫وليس‬)‫الخطوة‬ ‫الى‬ ‫مباشرة‬ ‫تنتقل‬ ،‫واألخير‬ ‫الثالثة‬‫ة‬‫هي‬ ‫و‬ ‫لالستعالم‬ ‫اسم‬ ‫لتوفير‬‫من‬ ‫و‬‫تحديد‬ ‫ثم‬‫فتح‬ ‫طريقة‬‫السج‬ ‫لعرض‬ ‫االستعالم‬‫الت‬‫التي‬ ‫ارجاعها‬ ‫يتم‬‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫أو‬‫تصميمه‬ ‫لتعديل‬. •‫إذا‬‫بتضمين‬ ‫قمت‬‫من‬ ‫حقول‬ ‫أو‬ ‫وقت‬ ‫و‬ ‫تاريخ‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬‫جد‬ ‫من‬ ‫أكثر‬‫ول‬ ،‫واحد‬‫ملخص‬ ‫استعالم‬ ‫أو‬ ‫التفاصيل‬ ‫استعالم‬ ‫إلنشاء‬ ‫المعالج‬ ‫يطالبك‬.‫ويظهر‬ ‫لالستعالم‬ ‫الفردية‬ ‫سجل‬ ‫كل‬ ‫التفاصيل‬ ‫االستعالم‬. ‫في‬‫استعالم‬‫جمع‬ ‫يمكنك‬ ،‫ملخص‬‫تحديد‬ ‫أو‬ ‫حقل‬ ‫في‬ ‫القيم‬‫الحساب‬ ‫المتوسط‬‫أو‬ ،‫ي‬ ‫الحد‬‫القصوى‬ ‫القيمة‬ ‫أو‬ ،‫للحقل‬ ‫األدنى‬. •‫في‬ ‫تعرض‬ ‫وعندما‬‫الخ‬ ‫يطالبك‬ ‫أيضا‬ ‫المعالج‬ ،‫التاريخ‬ ‫حقول‬ ‫ملخص‬ ‫استعالم‬‫تيار‬ ‫التواريخ‬ ‫حسب‬ ‫السجالت‬ ‫لتجميع‬ ‫تريد‬ ‫لكيف‬ ‫خيار‬.‫يم‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تجميع‬ ‫كن‬ ،‫الشهر‬ ‫حسب‬ ‫السجالت‬،‫السنة‬ ‫ربع‬‫أو‬‫السنة‬.
  • 10. Abdullatif Tarakji abdotarakji@gmail.com To create a select query by using the Simple Query wizard ‫البسيطة‬ ‫االستعالمات‬ ‫معالج‬ ‫باستخدام‬ ‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬ 1. On the Create tab, in the Queries group, click Query Wizard. 2. In the New Query dialog box, select Simple Query Wizard, and then click OK. 3. In the Simple Query wizard, in the Tables/Queries list, select the first table or query you want to use for this query. From the Available Fields list, add the fields you want to include in the query to the Selected Fields list. Click the chevron button to move all the fields to the Selected Fields list. 4. Repeat step 3 to include other tables or queries in the select query, and then add the fields you want to include. Click Next. 5. If the query includes numeric fields or fields from more than one table, the wizard prompts you to create a detail query or a summary query. If you select the Summary option, click Summary Options, and then select the summary function you want to apply to the fields that Access lists. Click OK in the Summary Options dialog box, and then click Next. 6. If prompted by the wizard, choose an option to group dates in the query. 7. On the wizard’s last page, enter a name for the query, and then choose whether to open the query to review the results or open the query in Design view. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫من‬,‫االستعالم‬ ‫معالج‬ ‫على‬ ‫اضغط‬‫ات‬. .2‫استعالم‬ ‫حوار‬ ‫مربع‬ ‫من‬‫جديد‬,‫مواف‬ ‫ثم‬ ‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫اختر‬‫ق‬. .3‫البسيط‬ ‫االستعالم‬ ‫معالج‬ ‫في‬,‫استعالمات‬ ‫و‬ ‫جداول‬ ‫قائمة‬ ‫من‬,‫الج‬ ‫اختر‬‫او‬ ‫دول‬ ‫االستعالم‬ ‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫األول‬ ‫االستعالم‬.‫الحقول‬ ‫قائمة‬ ‫من‬ ‫المتوفرة‬,‫قا‬ ‫الى‬ ‫االستعالم‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أضف‬‫الحقول‬ ‫ئمة‬ ‫المحددة‬.‫قائمة‬ ‫الى‬ ‫الحقول‬ ‫جميع‬ ‫لتحريك‬ ‫الكل‬ ‫اختيار‬ ‫زر‬ ‫على‬ ‫اضغط‬ ‫المحددة‬ ‫الحقول‬. .4‫الخطوة‬ ‫كرر‬3‫المحدد‬ ‫االستعالم‬ ‫في‬ ‫أخرى‬ ‫استعالمات‬ ‫او‬ ‫جداول‬ ‫لتضمين‬‫ثم‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أضف‬.‫التالي‬ ‫اضغط‬ ‫ثم‬. .5‫اذا‬‫أخرى‬ ‫جداول‬ ‫من‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬ ‫يتضمن‬ ‫االستعالم‬ ‫كان‬,‫المعال‬‫ج‬ ‫ملخص‬ ‫استعالم‬ ‫او‬ ‫االستعالم‬ ‫تفصيل‬ ‫إلنشاء‬ ‫يطالب‬.‫خي‬ ‫اخترت‬ ‫اذا‬‫ار‬ ‫ملخص‬,‫التلخيص‬ ‫خيارات‬ ‫على‬ ‫اضغط‬,‫ت‬ ‫تريد‬ ‫التي‬ ‫الداالت‬ ‫اختر‬ ‫ثم‬‫طبيقها‬ ‫االكسيس‬ ‫يعرضها‬ ‫التي‬ ‫للحقول‬.‫خيارا‬ ‫حوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫اضغط‬‫ت‬ ‫التلخيص‬,‫التالي‬ ‫اضغط‬ ‫ثم‬. .6‫المعالج‬ ‫طالبك‬ ‫اذا‬,‫االستعالم‬ ‫في‬ ‫التواريخ‬ ‫لتجميع‬ ‫خيار‬ ‫اختر‬. .7‫المعالج‬ ‫من‬ ‫صفحة‬ ‫آخر‬ ‫في‬,‫لالستعالم‬ ‫اسم‬ ‫ادخل‬,‫فت‬ ‫طريقة‬ ‫اختر‬ ‫ثم‬‫ح‬ ‫ل‬ ‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫أو‬ ‫النتائج‬ ‫لعرض‬ ‫االستعالم‬‫تعديله‬.
  • 12. Abdullatif Tarakji abdotarakji@gmail.com If the query includes numeric fields or fields from more than one table, the wizard prompts you to create a detail query or a summary query. If you select the Summary option, click Summary Options, and then select the summary function you want to apply to the fields that Access lists. Click OK in the Summary Options dialog box, and then click Next. ‫من‬ ‫حقول‬ ‫أو‬ ‫رقمية‬ ‫حقول‬ ‫يتضمن‬ ‫االستعالم‬ ‫كان‬ ‫اذا‬ ‫أخرى‬ ‫جداول‬,‫إلنشاء‬ ‫يطالب‬ ‫المعالج‬‫تفصيل‬‫االس‬‫تعالم‬ ‫ملخص‬ ‫استعالم‬ ‫او‬.‫خيار‬ ‫اخترت‬ ‫اذا‬‫ملخص‬,‫اضغط‬ ‫خيارات‬ ‫على‬‫التلخيص‬,‫ت‬ ‫التي‬ ‫الداالت‬ ‫اختر‬ ‫ثم‬‫ريد‬ ‫االكسيس‬ ‫يعرضها‬ ‫التي‬ ‫للحقول‬ ‫تطبيقها‬.‫اضغ‬‫موافق‬ ‫ط‬ ‫خيارات‬ ‫حوار‬ ‫مربع‬ ‫في‬‫التلخيص‬,‫الت‬ ‫اضغط‬ ‫ثم‬‫الي‬.
  • 13. Abdullatif Tarakji abdotarakji@gmail.com Using the Query Designer ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬ • Use the Query Design command on the Create tab to open the Query Designer. The Query Designer displays the query design grid (below the main pane) and the Show Table dialog box. • The Show Table dialog box lists all the tables and queries in the current database. Click a tab (Tables, Queries, or Both) to select the object or objects that contain the fields you want to include in the query. Close the Show Table dialog box to start adding fields to the query. • If you need to add tables to a query later, open the query in Design view, and then click Show Table in the Query Setup group on the Query Tools Design tool tab. You can also right-click in the Query Designer’s main pane (but not on a field list), and then click Show Table. If you need to remove a table from the Query Designer, right-click the table’s field list, and then click Remove Table. • Drag the field lists in the Query Designer’s main pane to reposition the lists and view more clearly the relationship lines that link tables. To add a field to the query, drag it from the field list to the Field row in a blank column in the design grid. (You can press Ctrl or Shift to select multiple fields.) You can also select fields from the list displayed when you click the arrow at the right of a column in the Field row. To add all the fields in a table to the query design grid, double-click the asterisk (*) at the top of the field list. •‫االستع‬ ‫مصمم‬ ‫لفتح‬ ‫إنشاء‬ ‫التبويب‬ ‫عالمة‬ ‫ضمن‬ ‫االستعالم‬ ‫تصميم‬ ‫األمر‬ ‫استخدام‬‫الم‬.‫يعرض‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫االستعالم‬ ‫مصمم‬(‫من‬ ‫األسفل‬ ‫في‬‫الرئيسي‬ ‫الجزء‬)‫و‬‫إظه‬‫ار‬‫مربع‬ ‫الحوار‬‫جدول‬. •‫الحالي‬ ‫البيانات‬ ‫قاعدة‬ ‫في‬ ‫واالستعالمات‬ ‫الجداول‬ ‫كافة‬ ‫جدول‬ ‫إظهار‬ ‫الحوار‬ ‫مربع‬ ‫يسرد‬‫ة‬. ‫التبويب‬ ‫عالمة‬ ‫فوق‬ ‫انقر‬(‫أو‬ ،‫االستعالمات‬ ،‫الجداول‬‫كالهما‬)‫الكائ‬ ‫أو‬ ‫الكائن‬ ‫لتحديد‬‫نات‬ ‫االستعالم‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫على‬ ‫تحتوي‬ ‫التي‬.‫إ‬ ‫الحوار‬ ‫مربع‬ ‫إغالق‬‫ظهار‬ ‫االستعالم‬ ‫إلى‬ ‫حقول‬ ‫إضافة‬ ‫لبدء‬ ‫جدول‬. •‫ف‬ ‫االستعالم‬ ‫افتح‬ ،‫الحق‬ ‫وقت‬ ‫في‬ ‫االستعالم‬ ‫إلى‬ ‫الجداول‬ ‫إضافة‬ ‫إلى‬ ‫بحاجة‬ ‫كنت‬ ‫إذا‬‫طريقة‬ ‫ي‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ‫ومن‬ ،‫التصميم‬ ‫عرض‬‫جدول‬ ‫إظهار‬‫االستعالم‬ ‫إعداد‬ ‫المجموعة‬ ‫في‬‫أدوات‬ ‫في‬ ‫تبويب‬‫تصميم‬ ‫أداة‬.‫أيضا‬ ‫يمكنك‬‫بزر‬ ‫الضغط‬‫الرئي‬ ‫الجزء‬ ‫في‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬‫سي‬ ‫االستعالم‬ ‫مصمم‬(‫على‬ ‫ليس‬ ‫ولكن‬‫الحقول‬ ‫قائمة‬)،‫جدول‬ ‫إظهار‬ ‫فوق‬ ‫انقر‬ ‫ثم‬.‫كنت‬ ‫إذا‬ ‫الحقول‬ ‫قائمة‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫انقر‬ ،‫االستعالم‬ ‫مصمم‬ ‫من‬ ‫الجدول‬ ‫إزالة‬ ‫إلى‬ ‫بحاجة‬ ‫الجدول‬ ‫إزالة‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ،‫للجدول‬. •‫قوائم‬ ‫اسحب‬‫في‬ ‫الحقل‬‫الرئيسي‬ ‫الجزء‬‫لمصمم‬‫أك‬ ‫وعرض‬ ‫القوائم‬ ‫إلعادة‬ ‫االستعالم‬‫ثر‬ ‫وضوحا‬‫لخطوط‬‫الجداول‬ ‫بين‬ ‫تربط‬ ‫التي‬ ‫العالقة‬.‫اسحب‬ ،‫االستعالم‬ ‫إلى‬ ‫حقل‬ ‫إلضافة‬‫من‬ ‫ه‬ ‫التصميم‬ ‫شبكة‬ ‫في‬ ‫فارغ‬ ‫عمود‬ ‫في‬ ‫الحقول‬ ‫صف‬ ‫إلى‬ ‫الحقول‬ ‫قائمة‬. (‫على‬ ‫الضغط‬ ‫يمكنك‬Ctrl‫أو‬Shift‫متعددة‬ ‫حقول‬ ‫لتحديد‬).‫يمكنك‬‫م‬ ‫الحقول‬ ‫تحديد‬ ‫أيضا‬‫ن‬ ‫حقل‬ ‫الصف‬ ‫في‬ ‫عمود‬ ‫يمين‬ ‫على‬ ‫السهم‬ ‫فوق‬ ‫النقر‬ ‫عند‬ ‫عرض‬ ‫قائمة‬. ‫إلضافة‬،‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫إلى‬ ‫جدول‬ ‫في‬ ‫الحقول‬ ‫كافة‬‫انقر‬‫فو‬ ‫مزدوجا‬ ‫نقرا‬‫النجمة‬ ‫ق‬ )*(‫الحقول‬ ‫قائمة‬ ‫من‬ ‫العلوي‬ ‫الجزء‬ ‫في‬.
  • 14. Abdullatif Tarakji abdotarakji@gmail.com • As mentioned earlier, a select query often includes criteria that defines the subset of records the query returns when you run it. For example, to find records for customers in a specific city, add the City field to the query. In the Criteria row for that field, enter =”CityName” (where “CityName” is the city you want to examine). You must enclose text values in quotation marks. • To specify criteria for a date field, enclose the date (or dates) in pound signs (#). You can retrieve records for orders placed between two dates by using an expression such as Between #4/1/2014# and #4/30/2014#. You can also use operators to retrieve records less than (<) or greater than (>) a certain numeric amount. •‫وقت‬ ‫في‬ ‫ذكر‬ ‫كما‬،‫سابق‬‫استعالم‬‫غالبا‬ ‫التحديد‬‫المعا‬ ‫تتضمن‬ ‫ما‬‫التي‬ ‫يير‬ ‫تحدد‬‫فرعية‬ ‫مجموعة‬‫االستعالم‬ ‫سجالت‬ ‫من‬‫بإرجاعها‬‫تشغيله‬ ‫عند‬.‫ع‬‫لى‬ ‫إضاف‬ ،‫معينة‬ ‫مدينة‬ ‫في‬ ‫للعمالء‬ ‫سجالت‬ ‫عن‬ ‫للبحث‬ ،‫المثال‬ ‫سبيل‬‫الحقل‬ ‫ة‬ ‫االستعالم‬ ‫مدينة‬ ‫إلى‬.‫الحقل‬ ‫لهذا‬ ‫معايير‬ ‫الصف‬ ‫في‬، ‫أدخل‬=«‫المدينة‬ ‫اسم‬» (‫حيث‬«‫المدينة‬ ‫اسم‬»‫هي‬‫تريد‬ ‫التي‬ ‫المدينة‬‫فحصها‬.) ‫يجب‬‫ن‬ ‫قيم‬ ‫تضمين‬ ‫عليك‬‫صية‬‫اقتباس‬ ‫عالمات‬ ‫في‬. •‫التاريخ‬ ‫إحاطة‬ ،‫التاريخ‬ ‫لحقل‬ ‫معايير‬ ‫لتحديد‬(‫التواريخ‬ ‫أو‬)‫ع‬ ‫في‬‫المات‬ ‫الهاش‬(#.)‫تاريخين‬ ‫بين‬ ‫وضعت‬ ‫ألوامر‬ ‫السجالت‬ ‫استرداد‬ ‫يمكنك‬ ‫تعبير‬ ‫باستخدام‬‫مثل‬‫بين‬‫تاريخين‬ Between #4/1/2014# and #4/30/2014#. ‫يمكنك‬‫السجالت‬ ‫السترداد‬ ‫المشغلين‬ ‫استخدام‬ ‫أيضا‬ ‫أقل‬‫من‬(<)‫من‬ ‫أكبر‬ ‫أو‬(>)‫رقمي‬‫معين‬.
  • 15. Abdullatif Tarakji abdotarakji@gmail.com • When you enter criteria in the Criteria row for more than one field, the query selects only records that match the criteria in all those fields—for example, records that have a value in the Order Date field greater than 9/15/2013 and a value for the Company Name field of Fabrikam. If you want to set up OR criteria (to find records with a value in the Company Name field of Fabrikam or Contoso), enter the second criteria in the Or row (below the Criteria row). • In the Query Setup group, use the Return list (the ScreenTip reads Top Values) to limit the number of records the query returns. By default, a query returns all matching records, but you can select one of the preset values (5, 25, 100, 5%, or 25%) or enter a value in the list box to specify how many records you want to display. After you sort records in a query, you can use the Return list to show, for example, the top 20 orders that customers placed in the current month. •‫عند‬‫في‬ ‫معايير‬ ‫إدخال‬‫صف‬‫يخت‬ ‫االستعالم‬ ،‫واحد‬ ‫حقل‬ ‫من‬ ‫ألكثر‬ ‫معايير‬‫ار‬ ‫المجاالت‬ ‫هذه‬ ‫جميع‬ ‫في‬ ‫المعايير‬ ‫تطابق‬ ‫التي‬ ‫الوحيدة‬ ‫السجالت‬ ‫على‬،‫المثال‬ ‫سبيل‬ ‫السجالت‬‫من‬ ‫أكبر‬ ‫الحقل‬ ‫ترتيب‬ ‫التاريخ‬ ‫في‬ ‫قيمة‬ ‫على‬ ‫تحتوي‬ ‫التي‬ 2013/9/15‫من‬ ‫الشركة‬ ‫اسم‬ ‫للحقل‬ ‫قيمة‬ ‫و‬Fabrikam.‫إذا‬‫ترغب‬ ‫كنت‬ ‫معايير‬ ‫أو‬ ‫إعداد‬ ‫في‬(‫الشركة‬ ‫اسم‬ ‫حقل‬ ‫في‬ ‫القيمة‬ ‫مع‬ ‫سجالت‬ ‫عن‬ ‫للبحث‬ ‫من‬Fabrikam‫أو‬‫شركة‬Contoso)،‫أدخل‬‫الثاني‬ ‫المعيار‬‫الصف‬ ‫في‬‫أو‬ (‫األسفل‬ ‫في‬‫المعايير‬ ‫صف‬ ‫من‬.) •‫العودة‬ ‫قائمة‬ ‫استخدام‬ ‫االستعالم‬ ‫إعداد‬ ‫المجموعة‬ ‫في‬(‫يق‬ ‫الشاشة‬ ‫تلميح‬‫رأ‬ ‫القيم‬ ‫أعلى‬)‫عدد‬ ‫من‬ ‫للحد‬‫في‬ ‫السجالت‬‫االستعالم‬ ‫إرجاع‬.‫افتراض‬ ‫بشكل‬،‫ي‬ ‫االستعالم‬‫كافة‬ ‫يرجع‬‫م‬ ‫واحد‬ ‫اختيار‬ ‫يمكنك‬ ‫ولكن‬ ،‫المتطابقة‬ ‫السجالت‬‫القيم‬ ‫ن‬ ‫مسبقا‬ ‫المحددة‬(5،25،100،5‫أو‬ ،٪25٪)‫مربع‬ ‫في‬ ‫قيمة‬ ‫إدخال‬ ‫أو‬ ‫عرضها‬ ‫تريد‬ ‫التي‬ ‫السجالت‬ ‫عدد‬ ‫لتحديد‬ ‫القائمة‬. ‫بعد‬،‫للعرض‬ ‫العودة‬ ‫قائمة‬ ‫استخدام‬ ‫يمكنك‬ ،‫استعالم‬ ‫في‬ ‫السجالت‬ ‫فرز‬‫على‬ ‫فإن‬ ،‫المثال‬ ‫سبيل‬‫أعلى‬20‫التي‬ ‫طلبية‬‫العمالء‬‫طلبوها‬‫الحالي‬ ‫الشهر‬ ‫في‬.
  • 16. Abdullatif Tarakji abdotarakji@gmail.com To create a select query in Design view ‫التصميم‬ ‫عرض‬ ‫في‬ ‫تحديد‬ ‫استعالم‬ ‫إلنشاء‬ 1. On the Create tab, in the Queries group, click Query Design. 2. In the Show Table dialog box, select the tables or queries you want to use in the query. Click Add to add the objects to the Query Designer, and then click Close. 3. From the field lists, drag the fields you want to include in the query to the Field row in the query design grid. (You can also select fields from the list that Access displays when you click the arrow in the Field row in the query design grid.) 4. Define selection criteria for the query in the Criteria row and the Or row depending on which records you want the query to return. 5. In the Results group on the Query Tools Design tool tab, click Run to display the records returned by the query. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالم‬ ‫مجموعة‬ ‫في‬,‫االستعالم‬ ‫مصمم‬ ‫اضغط‬. .2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫تريد‬ ‫الذي‬ ‫االستعالم‬ ‫أو‬ ‫الجدول‬ ‫اختر‬ ‫االستعالم‬ ‫في‬ ‫استخدامه‬.‫ل‬ ‫الكائنات‬ ‫إلضافة‬ ‫إضافة‬ ‫على‬ ‫اضغط‬‫مصمم‬ ‫االستعالم‬,‫اغالق‬ ‫اضغط‬ ‫ثم‬. .3‫الحقول‬ ‫قائمة‬ ‫من‬,‫االس‬ ‫في‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬‫الى‬ ‫تعالم‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬( .‫اختي‬ ً‫ا‬‫أيض‬ ‫يمكن‬‫الحقول‬ ‫ار‬ ‫س‬ ‫في‬ ‫السهم‬ ‫على‬ ‫الضغط‬ ‫عند‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬‫طر‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقول‬.) .4‫أو‬ ‫سطر‬ ‫و‬ ‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫المحددة‬ ‫المعايير‬ ‫عرف‬ ‫استردادها‬ ‫تريد‬ ‫التي‬ ‫السجالت‬ ‫على‬ ‫باالعتماد‬. .5‫التص‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫النتائج‬ ‫مجموعة‬ ‫في‬‫ميم‬, ‫لالستعالم‬ ‫المستردة‬ ‫السجالت‬ ‫إلظهار‬ ‫تشغيل‬ ‫اضغط‬.
  • 18. Abdullatif Tarakji abdotarakji@gmail.com To add tables to a query 1. Open the query in Design view. 2. On the Design tool tab, in the Query Setup group, click Show Table. 3. In the Show Table dialog box, select the tables or queries you want to add, click Add, and then click Close. To remove a table from a query 1. Open the query in Design view. 2. Right-click the field list for the table, and then click Remove Table. ‫االستعالم‬ ‫الى‬ ‫جداول‬ ‫إلضافة‬: .1‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫افتح‬. .2‫التصميم‬ ‫أدوات‬ ‫تصميم‬ ‫من‬,‫اعداد‬ ‫مجموعة‬ ‫في‬ ‫االستعالم‬,‫جدول‬ ‫إظهار‬ ‫اضغط‬. .3‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫أو‬ ‫الجداول‬ ‫اختر‬ ‫اضافتها‬ ‫تريد‬ ‫التي‬ ‫االستعالمات‬,‫إضافة‬ ‫اضغط‬,‫ثم‬‫اضغط‬ ‫اغالق‬. ‫االستعالم‬ ‫من‬ ‫جدول‬ ‫إلزالة‬: .1‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬ ‫افتح‬. .2‫للجدول‬ ‫الحقل‬ ‫قائمة‬ ‫على‬ ‫اليمين‬ ‫ماوس‬ ‫زر‬ ‫اضغط‬, ‫جدول‬ ‫إزالة‬ ‫اضغط‬ ‫ثم‬.
  • 19. Abdullatif Tarakji abdotarakji@gmail.com Creating parameter queries ‫معلمة‬ ‫استعالمات‬ ‫إنشاء‬ • A parameter query (a type of select query) provides flexibility in applying criteria. Instead of adding criteria such as =”Los Angeles” to the City field, you define a parameter for that field by using a format and prompt such as [Enter City Name]. With a parameter defined, you can use a single query to retrieve different sets of records based on the value you enter for the parameter. • To define a parameter, click in the Criteria row for the field you want to work with, and then enter a prompt enclosed in square brackets. For example, to create a parameter for the City field, enter [Enter a city name] or a similar prompt. When you run the query, Access displays the Enter Parameter Value dialog box, which displays the prompt you defined. Enter the value you want to use as criteria (for example, Chicago or Montreal for the city parameter), and then click OK. Access returns the set of records that match the criteria you provide. • The second step in defining a query parameter is to specify the parameter’s data type. Click Parameters in the Show/Hide group on the Query Tools Design tool tab. In the Query Parameters dialog box, enter the parameter name (including the brackets) just as it appears in the design grid. In the Data Type column, select the data type (such as Short Text or Date With Time) that matches the field you defined the parameter for. •‫المعلمة‬ ‫استعالم‬(‫تحديد‬ ‫استعالم‬ ‫من‬ ‫نوع‬ ‫وهو‬)‫تطبيق‬ ‫في‬ ‫المرونة‬ ‫يوفر‬‫المعايير‬. ‫مثل‬ ‫معايير‬ ‫إضافة‬ ‫من‬ ‫بدال‬" =‫أنجلوس‬ ‫لوس‬"‫إلى‬‫المدينة‬ ‫حقل‬‫ت‬ ‫أن‬ ‫عليك‬ ،‫حدد‬ ‫باستخدام‬ ‫الحقل‬ ‫لهذا‬ ‫معلمة‬‫مثل‬ ‫المطالبة‬ ‫و‬ ‫التنسيق‬[‫مدينة‬ ‫اسم‬ ‫أدخل‬.]‫مع‬‫معلمة‬ ‫السجال‬ ‫من‬ ‫مختلفة‬ ‫مجموعات‬ ‫السترداد‬ ‫واحد‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬ ،‫محددة‬‫ت‬ ‫للمعلمة‬ ‫تدخلها‬ ‫التي‬ ‫القيمة‬ ‫إلى‬ ‫استنادا‬. •‫العمل‬ ‫تريد‬ ‫لحقل‬ ‫معايير‬ ‫الصف‬ ‫في‬ ‫فوق‬ ‫انقر‬ ،‫معلمة‬ ‫لتعريف‬،‫به‬‫ومن‬‫أدخل‬ ‫ثم‬ ‫المطالبة‬‫أقواس‬ ‫بين‬‫مربعة‬.‫مدي‬ ‫للحقل‬ ‫معلمة‬ ‫إلنشاء‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫أدخل‬ ،‫نة‬ [‫المدينة‬ ‫اسم‬ ‫أدخل‬]‫أو‬‫مماثلة‬ ‫مطالبة‬.‫يعرض‬ ،‫االستعالم‬ ‫تشغيل‬ ‫عند‬Access ‫يعرض‬ ‫الذي‬ ،‫معلمة‬ ‫قيمة‬ ‫إدخال‬ ‫الحوار‬ ‫مربع‬‫قمت‬ ‫التي‬ ‫المطالبة‬‫بتعريف‬‫ها‬.‫أدخل‬ ‫كمعايير‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫القيمة‬(‫مو‬ ‫أو‬ ‫شيكاغو‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫نتلاير‬ ‫المدينة‬ ‫للمعلمة‬)‫موافق‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ،.‫ال‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫وصول‬ ‫يعود‬‫تي‬ ‫تقدمها‬ ‫التي‬ ‫المعايير‬ ‫تطابق‬. •‫المعلمة‬ ‫بيانات‬ ‫نوع‬ ‫لتحديد‬ ‫االستعالم‬ ‫معلمة‬ ‫تحديد‬ ‫في‬ ‫الثانية‬ ‫الخطوة‬.‫فوق‬ ‫انقر‬ ‫إظهار‬ ‫المجموعة‬ ‫في‬ ‫معلمات‬/‫أدوات‬ ‫على‬ ‫إخفاء‬‫تبويب‬ ‫استعالم‬‫تصمي‬ ‫أداة‬‫م‬.‫في‬ ‫المعلمة‬ ‫اسم‬ ‫أدخل‬ ،‫معلمات‬ ‫استعالم‬ ‫الحوار‬ ‫مربع‬(‫األقواس‬ ‫ذلك‬ ‫في‬ ‫بما‬)‫تما‬‫ما‬ ‫التصميم‬ ‫شبكة‬ ‫في‬ ‫يظهر‬ ‫كما‬.‫البيا‬ ‫نوع‬ ‫حدد‬ ،‫البيانات‬ ‫نوع‬ ‫العمود‬ ‫في‬‫نات‬(‫مثل‬ ‫الوقت‬ ‫مع‬ ‫التاريخ‬ ‫أو‬ ‫قصير‬ ‫نص‬)‫يطابق‬ ‫الذي‬‫حقل‬‫بتعريفه‬ ‫قمت‬‫للمع‬‫لمة‬.
  • 20. Abdullatif Tarakji abdotarakji@gmail.com To define a parameter for a query ‫لالستعالم‬ ‫معلمة‬ ‫لتعريف‬ 1. In the Navigation pane, right-click the query, and then click Design View. 2. Enter the parameter in the Criteria row, enclosing the parameter in square brackets. 3. In the Show/Hide group, click Parameters. 4. In the Query Parameters dialog box, in the Parameter column, enter the parameter exactly as it appears in the design grid. In the Data Type column, select the data type for the parameter, and then click OK. .1‫االستعال‬ ‫على‬ ‫يمين‬ ‫كليك‬ ‫اضغط‬ ‫التنقل‬ ‫جزء‬ ‫من‬‫م‬,‫ثم‬ ‫تصميم‬ ‫عرض‬ ‫اضغط‬. .2‫المعايير‬ ‫سطر‬ ‫في‬ ‫المعلمة‬ ‫ادخل‬,‫المعلمة‬ ‫أغلق‬ ‫مربعات‬ ‫بقوسين‬. .3‫إخفاء‬ ‫و‬ ‫اظهار‬ ‫مجموعة‬ ‫من‬,‫معلمات‬ ‫اضغط‬. .4‫االستعالم‬ ‫معلمات‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫المعلم‬ ‫عمود‬ ‫في‬‫ة‬, ‫الت‬ ‫شبكة‬ ‫في‬ ‫تظهر‬ ‫التي‬ ‫المعلمة‬ ‫بالضبط‬ ‫ادخل‬‫صميم‬. ‫البيانات‬ ‫نوع‬ ‫عمود‬ ‫في‬,‫للم‬ ‫البيانات‬ ‫نوع‬ ‫اختر‬‫علمة‬,‫ثم‬ ‫موافق‬ ‫اضغط‬.