Chapterبەش 2 · Lectureوانە 2.1

Tables, Fields and Datasheetsخشتەکان، ستوونەکان و پەڕەکانی دراوە

Plan the University database, create the Country and Student tables in Datasheet and Design view, choose data types and primary keys, then type, arrange, sort, filter and total records in a datasheet.

University پلان بکە، Country و Student لە و دروست بکە، و هەڵبژێرە، پاشان لە بنووسە، ڕێکیان بخە، ڕیزیان بکە، فلتەریان بکە و کۆیان بکەرەوە.

22 min read25 خولەک خوێندنەوە · 23 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Plan tables on paper and explain why marks need an Enrolment table.
  • Create a table in Datasheet view and in Design view, and copy or back up a table.
  • Choose a suitable data type for each field and set a primary key.
  • Enter, edit, delete, find, sort, filter and total records in a datasheet.
  • لەسەر کاغەز پلان بکەیت و ڕوون بکەیتەوە بۆچی نمرە پێویستی بە Enrolment هەیە.
  • لە و لە دروست بکەیت و کۆپی بکەیت یان لێ بگریت.
  • بۆ هەر گونجاو هەڵبژێریت و دابنێیت.
  • لە بنووسیت، دەستکاری بکەیت، بسڕیتەوە، بیاندۆزیتەوە، ڕیزیان بکەیت، فلتەریان بکەیت و کۆیان بکەیتەوە.

Plan before you clickپێش کلیک، پلان دابنێ

A database is easier to build when you first write its tables on paper: one table per subject, one field per fact. This is the plan of our University database. You build Country and Student in this lesson, Course and Enrolment in the practice; Department comes in lesson 5.

ئاسانتر دروست دەبێت ئەگەر سەرەتا لەسەر کاغەز بنووسیت: بۆ هەر بابەتێک یەک ، بۆ هەر زانیارییەک یەک . ئەمە پلانی Universityـمانە. لەم وانەیەدا Country و Student دروست دەکەیت، Course و Enrolment لە ڕاهێنانەکەدا؛ Department لە وانەی 5 دێت.

The tables of University.accdb ⁦University.accdb⁩
TableFieldsOne row is…هەر ڕیزێک…
CountryCountryID, CountryNameone countryیەک وڵات
StudentStudentID, StudentName, Phone, DOB, Married, Age, Department, CountryID, Cityone studentیەک قوتابی
CourseCourseCode, Title, DeptCode, Stage, CourseType, FeeIQDone courseیەک وانە
EnrolmentEnrolmentID, StudentID, CourseCode, EnrolDate, Markone student in one course: the mark lives hereیەک قوتابی لە یەک وانەدا: نمرەکە لێرەدایە
Quick checkپشکنینی خێراWhich field name is the best choice?کام ناوی باشترین هەڵبژاردەیە؟

Plan before you clickپێش کلیک، پلان دابنێ

Why marks need an Enrolment tableبۆچی نمرە پێویستی بە خشتەی Enrolment هەیە

Why does a mark need its own Enrolment table? A mark belongs to one student in one course. If you put student ids and marks inside the Course table, the course's title and fee are typed again for every student, and a student with three courses needs three course rows. That repeating is exactly what normalization removes; here it gives the Enrolment table, which joins students and courses (many-to-many, finished in lesson 5).

بۆچی نمرە پێویستی بە Enrolmentـی تایبەت هەیە؟ نمرە هی یەک قوتابییە لە یەک وانەدا. ئەگەر ژمارەی قوتابی و نمرە بخەیتە ناو Course، ناونیشان و کرێی وانەکە بۆ هەر قوتابییەک دووبارە دەنووسرێتەوە و قوتابییەک بە سێ وانەوە پێویستی بە سێ ڕیزی وانە دەبێت. ئەم دووبارەبوونەوەیە ڕێک ئەوەیە کە نۆرماڵکردن لایدەبات؛ لێرەدا Enrolment دەدات کە قوتابیان و وانەکان بە یەکەوە دەبەستێت (زۆر بۆ زۆر، لە وانەی 5 تەواو دەکرێت).

Quick checkپشکنینی خێراWhere should Shilan's mark in CS21 be stored?نمرەی شیلان لە ⁦CS21⁩ لە کوێ هەڵبگیرێت؟

Ways to create a tableڕێگاکانی دروستکردنی خشتەیەک

Access gives several ways to make a table. This course mostly uses the first two.

Access چەند ڕێگایەک بۆ دروستکردنی دەدات. ئەم کۆرسە زۆرتر دوو ڕێگای یەکەم بەکاردەهێنێت.

Six ways to get a tableشەش ڕێگا بۆ
WayڕێگاHowچۆنGood forباشە بۆ
In Datasheet viewلە Create → Tabletyping data at once and adding fields as you goیەکسەر نووسینی و زیادکردنی لە کاتی کارکردندا
In Design viewلە Create → Table Designsetting every field, type and property firstسەرەتا دیاریکردنی هەموو ، جۆر و تایبەتمەندییەک
Application PartsCreate → Application Parts → Quick Starta ready table such as Comments or Contacts ئامادە وەک Comments یان Contacts
From a templateلە File → New → a templatea whole ready database to learn from تەواوی ئامادە بۆ فێربوون
Import or linkهێنان یان بەستنەوەExternal Data → New Data Sourcedata that already exists in Excel or another database (lesson 8) کە پێشتر لە Excel یان تردا هەیە (وانەی 8)
Copy a tableلەبەرگرتنەوەی right-click → Copy, right-click → Paste ڕاست ← Copy، ڕاست ← Pastean empty copy or a backupکۆپییەکی بەتاڵ یان
Quick checkپشکنینی خێراThe department already keeps 300 students in an Excel file. Which way of making the table is best?بەشەکە پێشتر ⁦300⁩ قوتابیی لە Excel هەیە. باشترین ڕێگای دروستکردنی کامەیە؟

Ways to create a tableڕێگاکانی دروستکردنی خشتەیەک

Application Parts and copying a table⁦Application Parts⁩ و لەبەرگرتنەوەی خشتەیەک

  1. A table from Application Partsخشتەیەک لە ⁦Application Parts⁩

    Create → Application Parts → Quick Start → Comments (or Contacts). Contacts builds a table and also its forms and reports.

    Create → ⁦Application Parts⁩ → ⁦Quick Start⁩ → Comments (یان Contacts). Contacts و هەروەها و دروست دەکات.

  2. If Access asks how the new table relates to an existing one, choose There is no relationship for now (lesson 5 is about relationships).

    ئەگەر Access پرسی نوێیەکە چ پەیوەندییەکی بە هەبووەوە هەیە، بۆ ئێستا ⁦There is no relationship⁩ هەڵبژێرە (وانەی 5 دەربارەی ).

  3. If a yellow Message Bar appears, click Enable Content so the new objects can work (only in your own files).

    ئەگەر ⁦Message Bar⁩ـێکی زەرد دەرکەوت، لە ⁦Enable Content⁩ بکە بۆ ئەوەی نوێیەکان کار بکەن (تەنها لە خۆتدا).

  1. Copy a tableلەبەرگرتنەوەی خشتەیەک

    In the Navigation Pane right-click the table (for example Country) → Copy.

    لە ڕاست لە بکە (بۆ نموونە Country) ← Copy.

  2. Right-click an empty part of the pane → Paste. The Paste Table As dialog opens.

    ڕاست لە بەشێکی بەتاڵی بکە ← Paste. ⁦Paste Table As⁩ دەکرێتەوە.

  3. Type a name and choose: Structure Only (the fields, no rows), Structure and Data (a full copy) or Append Data to Existing Table (add these rows to a table with the same fields).

    ناوێک بنووسە و هەڵبژێرە: ⁦Structure Only⁩ (، بەبێ ڕیز)، ⁦Structure and Data⁩ (کۆپیی تەواو) یان ⁦Append Data to Existing Table⁩ (ئەم ڕیزانە بۆ بە هەمان زیاد بکە).

Quick checkپشکنینی خێراYou need an empty Student table for next year with the same fields but no rows. Which Paste Table As option?پێویستت بە Studentـی بەتاڵ هەیە بۆ ساڵی داهاتوو بە هەمان بەڵام بەبێ ڕیز. کام هەڵبژاردەی ⁦Paste Table As⁩؟

Build a table in Datasheet viewخشتەیەک لە پیشاندانی Datasheetـدا دروست بکە

Lesson 1 left University.accdb open with Table1 in . Access has already added one field, ID, of type AutoNumber: it numbers the records 1, 2, 3… by itself and is the table's . Turn Table1 into the Country table:

وانەی 1 University.accdbـی بە ⁦Table1⁩ـەوە لە کراوە هێشتەوە. Access پێشتر زیاد کردووە، ID، بە جۆری AutoNumber: خۆی ژمارە دەکات 1، 2، 3… و . ⁦Table1⁩ بکە بە Country:

  1. Double-click the ID header and type CountryID (or right-click it → Rename Field).

    لە سەری ID بکە و CountryID بنووسە (یان ڕاست لێی بکە ← ⁦Rename Field⁩).

  2. Click Click to Add and choose Short Text. Access adds Field1; type CountryName and press Enter.

    لە ⁦Click to Add⁩ بکە و ⁦Short Text⁩ هەڵبژێرە. ⁦Access Field1⁩ زیاد دەکات؛ CountryName بنووسە و Enter دابگرە.

  3. Click in the first CountryName cell and type Iraq. A pencil appears on the record selector: the record is being edited. Press Enter or ↓ and the record is saved.

    لە یەکەم خانەی CountryName بکە و Iraq بنووسە. پێنووسێک لەسەر هەڵبژێری دەردەکەوێت: دەستکاری دەکرێت. Enter یان ↓ دابگرە و پاشەکەوت دەبێت.

  4. Type the other four: Iran, Türkiye, Syria, Germany. Do not type the numbers; AutoNumber fills CountryID.

    چوارەکەی تر بنووسە: Iran، Türkiye، Syria، Germany. ژمارەکان مەنووسە؛ AutoNumber خۆی CountryID پڕ دەکاتەوە.

  5. Press Ctrl+S (or right-click the Table1 tab → Save), type Country and click OK.

    ⁦Ctrl+S⁩ دابگرە (یان ڕاست لە تابی ⁦Table1⁩ بکە ← Save)، Country بنووسە و لە OK بکە.

Seven frames of a datasheet. 1: Table1 with only ID and Click to Add. 2: the Click to Add list open with Short Text highlighted. 3: the headers renamed CountryID and CountryName. 4: 'Iraq' being typed, a pencil on the record selector, a new row with an asterisk below. 5: the pencil is gone; the record is saved. 6: five rows, 1 Iraq to 5 Germany. 7: the Save As box with Table Name 'Country'.
Seven frames of a datasheet. 1: Table1 with only ID and Click to Add. 2: the Click to Add list open with Short Text highlighted. 3: the headers renamed CountryID and CountryName. 4: 'Iraq' being typed, a pencil on the record selector, a new row with an asterisk below. 5: the pencil is gone; the record is saved. 6: five rows, 1 Iraq to 5 Germany. 7: the Save As box with Table Name 'Country'.
Building the Country table in Datasheet viewدروستکردنی Country لە CêIT
Quick checkپشکنینی خێراWhile you type in a new row, what does the pencil on the record selector mean?لە کاتی نووسین لە ڕیزێکی نوێدا، پێنووسەکەی سەر هەڵبژێری واتای چییە؟

Data types in practiceجۆرەکانی دراوە لە کاری ڕاستەقینەدا

Every field has a . It decides what the field can hold, how much space it takes and what you can do with it. Choose the most specific type: a fee is Currency, not Short Text. The ideas behind data types are in data types today; here is how Access names them, with a field of our database for each:

هەر هەیە. دیاری دەکات چی هەڵدەگرێت، چەند شوێن دەگرێت و چیی پێ دەکرێت. وردترین جۆر هەڵبژێرە: کرێ Currencyـە، نەک ⁦Short Text⁩. بیرۆکەکانی پشت لە جۆرەکانی دراوەی ئەمڕۆ ڕوون کراونەتەوە؛ ئەمە ئەوەیە Access چۆن ناویان دەنێت، لەگەڵ بۆ هەر یەکێکیان:

Access data types for text and numbers (Access for Microsoft 365) Access بۆ دەق و ژمارە ⁦(Access for Microsoft 365)⁩
Data typeHoldsهەڵدەگرێتSizeقەبارەIn our databaseلە
Short Texttext, and numbers you never calculate with (phones, codes)دەق و ئەو ژمارانەی هەرگیز ژمێرکارییان پێ ناکەیت (تەلەفۆن، کۆد)up to 255 charactersتا ⁦255⁩ StudentName, Phone, City
Long Textlong text such as notesدەقی درێژ وەک تێبینیabout 1 GB; controls show the first 64,000 charactersنزیکەی ⁦1 GB⁩؛ یەکەم ⁦64,000⁩ پیشان دەدەن—
Numbernumbers you calculate withئەو ژمارانەی ژمێرکارییان پێ دەکەیت1–16 bytes, chosen with Field Size (lesson 3)1 تا ⁦16⁩ ، بە ⁦Field Size⁩ هەڵدەبژێردرێت (وانەی ⁦3⁩)Age, Mark, Stage
Large Numbervery large whole numbersژمارەی تەواوی زۆر گەورە8 bytes8 شوێن دەگرێت—
Currencymoney, exact to 4 decimal placesپارە، ورد تا 4 ژمارەی دوای 8 bytes8 شوێن دەگرێتFeeIQD
AutoNumbera unique number Access gives each new recordژمارەیەکی تاک کە Access بە هەر نوێ دەیدات4 bytes4 شوێن دەگرێتStudentID, CountryID, EnrolmentID
Quick checkپشکنینی خێراWhich data type should Phone (+964 750 000-1001) have?⁦Phone (+964 750 000-1001)⁩ دەبێت چ هەبێت؟

13. Create Tab Part 02Kurdistan College · Kurdish (Sorani)کوردی (سۆرانی) · 2.5K viewsبینین · 67 likesلایک

Kurdish: the Access data types one by one in Design view (Short Text, Number, Currency, Yes/No, Hyperlink, Attachment, Calculated) and what each holds.

بە کوردی: Access یەک بە یەک لە (⁦Short Text⁩، Number، Currency، ⁦Yes/No⁩، Hyperlink، Attachment، Calculated) و هەریەکەیان چی هەڵدەگرێت.

Kurdish (Sorani), whole video (14:24): fields with Kurdish names get each Access data type in Design view, then Attachment and Hyperlink values are typed in the datasheet.

بە کوردیی سۆرانی، هەموو ڤیدیۆکە ⁦(14:24)⁩: ناوی کوردییان هەیە و هەریەکەیان لە Access وەردەگرێت، پاشان Attachment و Hyperlink لە دەنووسرێن.

Data types in practiceجۆرەکانی دراوە لە کاری ڕاستەقینەدا

Dates, Yes/No, links and filesڕێکەوت، ⁦Yes/No⁩، بەستەر و فایل

Access data types for dates, Yes/No, links and files Access بۆ ڕێکەوت، ⁦Yes/No⁩، بەستەر و
Data typeHoldsهەڵدەگرێتSizeقەبارەIn our databaseلە
Date/Timedates and timesڕێکەوت و کات8 bytes8 شوێن دەگرێتDOB, EnrolDate
Date/Time Extendeddates and times with a wider range and more precision (for SQL Server)ڕێکەوت و کات بە سنووری فراوانتر و وردیی زیاتر (بۆ ⁦SQL Server⁩)42 bytes⁦42⁩ شوێن دەگرێت—
Yes/Noone of two values; Access stores −1 for Yes and 0 for Noیەکێک لە دوو نرخ؛ Access بۆ Yes ژمارەی −1-1 و بۆ No ژمارەی 0 هەڵدەگرێت1 byte1 شوێن دەگرێتMarried
Hyperlinka link to a web page or a file بۆ پەڕەیەکی وێب یان up to 8,192 charactersتا ⁦8,192⁩ —
Attachmentfiles such as photos, attached to a record وەک وێنە کە بە دەلکێندرێنup to about 2 GBتا نزیکەی ⁦2 GB⁩—
Calculateda value worked out from other fields of the same tableنرخێک کە لە تری هەمان دەژمێردرێتdepends on the resultبەپێی ئەنجامەکە— (a query does it better: calculated fields)— ( باشتر دەیکات: ستوونە ژمێردراوەکان)
OLE Objectold-style embedded files from other Windows programs داکوتراوی شێوازی کۆن لە تری Windowsup to about 2 GBتا نزیکەی ⁦2 GB⁩— (use Attachment)— (Attachment بەکاربهێنە)
Quick checkپشکنینی خێراMarried is ticked (Yes). Which number does Access store in the field?Married نیشان کراوە ⁦(Yes). Access⁩ چ ژمارەیەک لە هەڵدەگرێت؟

Data types in practiceجۆرەکانی دراوە لە کاری ڕاستەقینەدا

Lookup Wizard and changing a type⁦Lookup Wizard⁩ و گۆڕینی جۆرێکی دراوە

Lookup Wizard… also appears in the Data Type list, but it is not a data type: it is a wizard that turns a field into a lookup field. The old names Text and Memo (Access 2010 and the owner's photos) are today Short Text and Long Text. Phone numbers are Short Text: a number field would drop the leading 0 and cannot hold +.

⁦Lookup Wizard⁩… لە لیستی ⁦Data Type⁩ـیش دەردەکەوێت، بەڵام نییە: کە دەکات بە ستوونی هەڵبژاردن. ناوە کۆنەکانی Text و Memo (⁦Access 2010⁩ و وێنەکانی خاوەنی کۆرسەکە) ئەمڕۆ ⁦Short Text⁩ و ⁦Long Text⁩ـن. ژمارەی تەلەفۆن ⁦Short Text⁩ـە: Number سفری سەرەتا لادەبات و ناتوانێت + هەڵبگرێت.

In the Table Fields tab shows the selected field's Data Type and Format boxes (Formatting group). A Date/Time field offers formats such as Short Date and Long Date; a Yes/No field can show Yes/No, True/False or On/Off — the stored value stays −1 or 0. Short Text has no ready formats.

لە ⁦Table Fields⁩ سندووقەکانی ⁦Data Type⁩ و Formatـی هەڵبژێردراو پیشان دەدات ( Formatting). ⁦Date/Time⁩ شێوازی وەک ⁦Short Date⁩ و ⁦Long Date⁩ پێشکەش دەکات؛ ⁦Yes/No⁩ دەتوانێت ⁦Yes/No⁩، ⁦True/False⁩ یان ⁦On/Off⁩ پیشان بدات — نرخە هەڵگیراوەکە هەر −1-1 یان 0 دەمێنێتەوە. ⁦Short Text⁩ شێوازی ئامادەی نییە.

Quick checkپشکنینی خێراCity is a Short Text field full of names. You change its data type to Number and continue. What happens?City ⁦Short Text⁩ـە و پڕە لە ناو. دەگۆڕیت بۆ Number و بەردەوام دەبیت. چی ڕوو دەدات؟

Design viewپیشاندانی Design

shows a table's structure instead of its records. Open it with Home → View → Design View, by right-clicking the table's tab or the table in the Navigation Pane → Design View, or with the Design View button at the right of the status bar. Open Country in Design view: CountryID is AutoNumber with a key icon, CountryName is Short Text, and its Field Size is 255 — too big for a country name; lesson 3 fixes it.

لە جیاتی پێکهاتەی پیشان دەدات. بە Home → View ← ⁦Design View⁩، بە ڕاست لە تابی یان لە لە ← ⁦Design View⁩، یان بە ⁦Design View⁩ لە لای ڕاستی بیکەرەوە. Country لە بکەرەوە: CountryID بە کلیلەوە AutoNumberـە، ⁦CountryName Short Text⁩ـە و ⁦Field Size⁩ـەکەی ⁦255⁩ـە — بۆ ناوی وڵات زۆر گەورەیە؛ وانەی 3 چاکی دەکات.

The upper half is a grid with one row per field: Field Name, Data Type (a drop-down list) and Description (Optional), a note for people who later change the design. The lower half, Field Properties, shows the settings of the selected field on two tabs, General and Lookup; lesson 3 is about them.

نیوەی سەرەوە تۆڕێکە کە بۆ هەر یەک ڕیزی هەیە: ⁦Field Name⁩، ⁦Data Type⁩ () و ⁦Description (Optional)⁩، تێبینییەک بۆ ئەو کەسانەی دواتر دیزاینەکە دەگۆڕن. نیوەی خوارەوە، ⁦Field Properties⁩، ڕێکخستنەکانی هەڵبژێردراو لە دوو تابدا پیشان دەدات، General و Lookup؛ وانەی 3 دەربارەی ئەوانە.

The Student table in Design view in Access for Microsoft 365. The ribbon shows the Table Design tab with the Primary Key button. The upper grid has the columns Field Name, Data Type and Description (Optional) and nine rows: StudentID AutoNumber with a key icon, StudentName Short Text (selected, with the Data Type arrow), Phone Short Text, DOB Date/Time, Married Yes/No, Age Number, Department Short Text, CountryID Number and City Short Text. The lower Field Properties pane has General and Lookup tabs and lists Field Size 255, Format, Input Mask, Caption, Default Value, Validation Rule, Validation Text, Required No, Allow Zero Length Yes, Indexed No, Unicode Compression Yes, IME Mode, IME Sentence Mode, Text Format Plain Text and Text Align General; a help box explains that a field name can be up to 64 characters.خشتەی Student لە پیشاندانی Designـدا لە Access for Microsoft 365. شریتی فەرمان تابی Table Design بە دوگمەی Primary Key پیشان دەدات. تۆڕی سەرەوە ستوونەکانی Field Name، Data Type و Description (Optional)ـی هەیە و نۆ ڕیز: StudentID AutoNumber بە ئایکۆنی کلیل، StudentName Short Text (هەڵبژێردراو، بە تیری Data Type)، Phone Short Text، DOB Date/Time، Married Yes/No، Age Number، Department Short Text، CountryID Number و City Short Text. پانێڵی Field Propertiesـی خوارەوە تابەکانی General و Lookupـی هەیە و Field Size 255، Format، Input Mask، Caption، Default Value، Validation Rule، Validation Text، Required No، Allow Zero Length Yes، Indexed No، Unicode Compression Yes، IME Mode، IME Sentence Mode، Text Format Plain Text و Text Align General لیست دەکات؛ سندووقێکی یارمەتی دەڵێت ناوی ستوون دەتوانێت تا 64 نووسە بێت.
The Student table in Design view: the field grid above, the Field Properties pane below Student لە : تۆڕی لە سەرەوە، ⁦Field Properties⁩ لە خوارەوەCêIT
Quick checkپشکنینی خێراIn the upper grid of Design view, what is the Description (Optional) column for?لە تۆڕی سەرەوەی ، ستوونی ⁦Description (Optional)⁩ بۆ چییە؟

Design viewپیشاندانی Design

Build the Student tableخشتەی Student دروست بکە

  1. Create → Table Design opens an empty design grid.

    Create ← ⁦Table Design⁩ تۆڕێکی دیزاینی بەتاڵ دەکاتەوە.

  2. Type the nine fields of the plan with their types: StudentID AutoNumber; StudentName Short Text; Phone Short Text; DOB Date/Time; Married Yes/No; Age Number; Department Short Text; CountryID Number; City Short Text. Add a short description where it helps.

    نۆ پلانەکە لەگەڵ جۆرەکانیان بنووسە: ⁦StudentID AutoNumber⁩؛ ⁦StudentName Short Text⁩؛ ⁦Phone Short Text⁩؛ ⁦DOB Date/Time⁩؛ ⁦Married Yes/No⁩؛ ⁦Age Number⁩؛ ⁦Department Short Text⁩؛ ⁦CountryID Number⁩؛ ⁦City Short Text⁩. لە شوێنی پێویست وەسفێکی کورت زیاد بکە.

  3. Click the StudentID row and click Primary Key (Table Design tab). A key icon appears.

    لە ڕیزی StudentID بکە و لە ⁦Primary Key⁩ بکە ( ⁦Table Design⁩). کلیل دەردەکەوێت.

  4. Press Ctrl+S and name the table Student.

    ⁦Ctrl+S⁩ دابگرە و ناوی بنێ Student.

Quick checkپشکنینی خێراWhy is Student.CountryID a Number and not Short Text?بۆچی ⁦Student.CountryID Number⁩ـە و ⁦Short Text⁩ نییە؟

The primary keyکلیلی سەرەکی

The primary key is the field whose value identifies each record. In Access you set it in : click the field's row and click Table Design → Primary Key; a key icon appears. Click it again to remove the key.

کلیلی سەرەکی ئەو کە نرخەکەی هەر دەناسێنێت. لە Accessـدا لە دایدەنێیت: لە ڕیزی بکە و لە ⁦Table Design⁩ ← ⁦Primary Key⁩ بکە؛ کلیل دەردەکەوێت. بۆ لابردنی، دووبارە لێی بکەرەوە.

  • If you save a new table without a key, Access offers to add one. Yes adds an AutoNumber field called ID as the key; No leaves the table without a key.
  • A key value is never empty and never repeated: Access builds a unique index on it and refuses a duplicate or an empty key.
  • When you open a table, its records are shown in primary-key order.
  • In the Relationships window (lesson 5) key fields are shown in bold; other tables point to them with foreign keys.
  • A composite key uses two or more fields: hold Ctrl, click their row selectors, then click Primary Key.
  • ئەگەر نوێ بەبێ پاشەکەوت بکەیت، Access پێشنیار دەکات یەکێک زیاد بکات. Yes AutoNumber بە ناوی ID وەک زیاد دەکات؛ No بەبێ دەهێڵێتەوە.
  • نرخی هەرگیز بەتاڵ نییە و دووبارە نابێتەوە: Access یەکتای لەسەر دروست دەکات و دووبارە یان بەتاڵ ڕەت دەکاتەوە.
  • کاتێک دەکەیتەوە، بە ڕیزی پیشان دەدرێن.
  • لە Relationships (وانەی 5) بە تۆخی پیشان دەدرێن؛ تر بە ئاماژەیان بۆ دەکەن.
  • دوو یان زیاتر بەکاردەهێنێت: Ctrl دابگرە، لە هەڵبژێری ڕیزەکانیان بکە، پاشان لە ⁦Primary Key⁩ بکە.
Quick checkپشکنینی خێراYou save a new table that has no primary key and click Yes in Access's message. What happens? نوێ بەبێ پاشەکەوت دەکەیت و لە پەیامەکەی Access لە Yes دەکەیت. چی ڕوو دەدات؟

The primary keyکلیلی سەرەکی

Two design trapsدوو تەڵەی دیزاین

  • A name as the key. If StudentName were the key, the second Hana could never be typed: we have two students called Hana. Names repeat; use an AutoNumber surrogate key.
  • A composite key that is too tight. If Enrolment's key were (StudentID, CourseCode), a student could take each course only once ever: Hana (6) failed CS21 with 47 and cannot enrol again next year. Our Enrolment gets its own EnrolmentID. When a composite key is right is explained in composite key.
  • ناو وەک . ئەگەر StudentName بوایە، هانای دووەم هەرگیز نەدەنووسرا: دوو قوتابیمان بە ناوی هانا هەیە. ناو دووبارە دەبێتەوە؛ AutoNumber بەکاربهێنە (کلیلی دەستکرد).
  • کە زۆر تەنگە. ئەگەر ⁦Enrolment (StudentID⁩، CourseCode) بوایە، قوتابی تەنها یەک جار لە ژیانیدا دەیتوانی هەر وانەیەک بخوێنێت: هانا ⁦(6)⁩ لە ⁦CS21⁩ بە ⁦47⁩ دەرنەچوو و ساڵی داهاتوو ناتوانێت دووبارە تۆمار بکرێت. Enrolmentـەکەمان EnrolmentIDـی تایبەتی خۆی وەردەگرێت. کەی دروستە لە کلیلی لێکدراو ڕوون کراوەتەوە.
Quick checkپشکنینی خێراWhy does Enrolment get its own EnrolmentID instead of the key (StudentID, CourseCode)?بۆچی ⁦Enrolment EnrolmentID⁩ـی تایبەتی خۆی وەردەگرێت لە جیاتی (StudentID، CourseCode)؟

Entering and editing recordsنووسین و دەستکاریکردنی تۆمارەکان

Open Student in and type these nine students. Leave StudentID alone (AutoNumber). Type dates in the order your Windows uses (for example 14/03/1998 if it uses day/month/year); tick the Married box for Yes. CountryID is the number from Country: 1 Iraq, 2 Iran, 3 Türkiye, 4 Syria.

Student لە بکەرەوە و ئەم نۆ قوتابییە بنووسە. دەست لە StudentID مەدە ⁦(AutoNumber)⁩. ڕێکەوت بەو ڕیزبەندییە بنووسە کە Windowsـەکەت بەکاری دەهێنێت (بۆ نموونە ⁦14/03/1998⁩ ئەگەر ڕۆژ/مانگ/ساڵ بەکاربهێنێت)؛ بۆ Yes چوارگۆشەی Married نیشان بکە. CountryID ژمارەکەیە لە Countryـەوە: ⁦1 Iraq⁩، ⁦2 Iran⁩، ⁦3 T⁩ürkiye، ⁦4 Syria⁩.

Sample rows for Student (all names and numbers are made up; Lana's phone is unknown)ڕیزە نموونەییەکانی Student (هەموو ناو و ژمارەکان دەستکردن؛ ژمارەی تەلەفۆنی لانا نەزانراوە)
StudentIDStudentNamePhoneDOBMarriedAgeDepartmentCountryIDCity
1Aram+964 750 000-10011998-03-14No28IT1Sulaimani
2Shilan+964 770 000-10021999-11-02No26CS1Erbil
3Karwan+964 751 000-10031995-06-21Yes31Biology2Halabja
4Dilan+964 771 000-10041997-01-30No29IT3Duhok
5Rezan+964 750 000-10051992-09-09Yes34Accounting1Kirkuk
6Hana+964 772 000-10062000-01-01No26CS4Zakho
7Soran+964 750 000-10071994-04-17No32IT1Erbil
8Lana1996-12-05No29Biology1Ranya
9Hana+964 773 000-10091993-07-25Yes33IT1Koya
Quick checkپشکنینی خێراWhat do you type in StudentID for a new student?بۆ قوتابییەکی نوێ چی لە StudentIDـدا دەنووسیت؟

Entering and editing recordsنووسین و دەستکاریکردنی تۆمارەکان

Keys for moving and typingدوگمەکان بۆ جووڵە و نووسین

Moving and typing in a datasheet is quicker with the keyboard:

جووڵە و نووسین لە بە خێراترە:

Datasheet keys (checked on Microsoft's Access shortcut page) (لەسەر پەڕەی کورتەڕێکانی Accessـی Microsoft پشکنراون)
KeysWhat they doچی دەکەن
Tab · Shift+Tabnext field · previous field (Enter also moves on) دواتر · پێشوو (Enterـیش دەچێتە پێشەوە)
Home · Endfirst · last field of the recordیەکەم · کۆتا
↑ · ↓same field in the previous · next recordهەمان لە پێشوو · دواتر
Ctrl+Home · Ctrl+Endfirst field of the first record · last field of the last recordیەکەم یەکەم · کۆتا کۆتا
Ctrl+;type today's dateڕێکەوتی ئەمڕۆ دەنووسێت
Ctrl+Shift+:type the current timeکاتی ئێستا دەنووسێت
Ctrl+'copy the same field's value from the record aboveنرخی هەمان لە سەرەوە کۆپی دەکات
Ctrl++ · Ctrl+−new record · delete the current record نوێ · سڕینەوەی ئێستا
Shift+Entersave the current record now ئێستا یەکسەر پاشەکەوت دەکات
F2switch between editing inside a cell and moving between cellsگۆڕین لە نێوان دەستکاری لەناو خانەدا و جووڵە لە نێوان خانەکاندا
Shift+F2open the Zoom box to read or type a long valueسندووقی Zoom دەکاتەوە بۆ خوێندنەوە یان نووسینی نرخێکی درێژ
Escundo the typing in this field; press again to undo the whole recordنووسینی ئەم هەڵدەوەشێنێتەوە؛ دووبارە دابگرە بۆ هەموو
Insertswitch overtype on or offنووسینی سەر نووسین چالاک یان ناچالاک دەکات
Quick checkپشکنینی خێراYou type a new student who lives in the same city as the student in the row above. Which keys copy that City into the cell?قوتابییەکی نوێ دەنووسیت کە لە هەمان شاری قوتابیی ڕیزی سەرەوە دەژی. کام ئەو Cityـیە کۆپی دەکەن بۆ خانەکە؟

Entering and editing recordsنووسین و دەستکاریکردنی تۆمارەکان

Saving, editing and deleting recordsپاشەکەوتکردن، دەستکاریکردن و سڕینەوەی تۆمارەکان

  • A record is saved when you leave it (another record, closing the table) or press Shift+Enter. There is no Save step for data.
  • To delete records, click their record selectors and press Delete (or Home → Records → Delete) and confirm. A deleted record cannot be brought back — Undo does not work for it.
  • Edit a value by clicking into the cell and typing over it, for example change a city.
  • Access refuses a value that breaks a rule: text in a Number field now; after lessons 4 and 5 also a date outside the allowed range or an Enrolment for a student who does not exist.
  • کاتێک بەجێی دەهێڵیت پاشەکەوت دەبێت ( تر، داخستنی ) یان کاتێک ⁦Shift+Enter⁩ دادەگریت. هیچ هەنگاوێکی Save بۆ نییە.
  • بۆ سڕینەوەی ، لە هەڵبژێرەکانیان بکە و Delete دابگرە (یان Home → Records → Delete) و پشتڕاستی بکەرەوە. سڕاوە ناگەڕێتەوە — بۆی کار ناکات.
  • نرخێک دەستکاری بکە بە لە ناو خانەکە و نووسین بەسەریدا، بۆ نموونە شارێک بگۆڕە.
  • Access نرخێک ڕەت دەکاتەوە کە ڕێسایەک دەشکێنێت: ئێستا دەق لە Numberـدا؛ دوای وانەکانی 4 و 5 هەروەها ڕێکەوتێک لە دەرەوەی سنووری ڕێگەپێدراو یان Enrolmentـێک بۆ قوتابییەک کە بوونی نییە.
Quick checkپشکنینی خێراYou typed the wrong city in a cell and have not left the record. How do you undo the typing?شارێکی هەڵەت لە خانەیەک نووسی و هێشتا بەجێ نەهێشتووە. چۆن نووسینەکە هەڵدەوەشێنیتەوە؟

Arranging the datasheetڕێکخستنی پەڕەی دراوە

The Country datasheet with labels: the field headers CountryID and CountryName; an AutoNumber key column; a record selector with a pencil on row 3 (Türkiye) being edited; the new-record row marked with an asterisk; the Click to Add column; and the record navigation bar 'Record 3 of 5' with a Search box.پەڕەی دراوەی Country بە ناونووسەوە: سەرەکانی ستوون CountryID و CountryName؛ ستوونی کلیلی AutoNumber؛ هەڵبژێری تۆمار بە پێنووسێک لەسەر ڕیزی 3 (Türkiye) کە دەستکاری دەکرێت؛ ڕیزی تۆماری نوێ کە بە ئەستێرە نیشان کراوە؛ ستوونی Click to Add؛ و شریتی گەشت بە تۆمارەکاندا «Record 3 of 5» بە سندووقی Search.
The parts of a datasheetبەشەکانی CêIT
  • Column width: drag the right border of a header; double-click the border to fit the widest value. Row height: drag the line between two record selectors (all rows change).
  • Exact width: right-click a header → Field Width and type a number. Copy a column: click its header to select it, then Ctrl+C copies all its values (for example to paste into Excel).
  • Move a column: click its header, then drag the header to a new place. This changes only the view, not the design.
  • Hide / unhide: right-click a header → Hide Fields; right-click any header → Unhide Fields and tick the columns to show.
  • Freeze: right-click StudentName's header → Freeze Fields: it stays at the left while you scroll right; Unfreeze All Fields undoes it.
  • Find and Replace: Home → Find (Ctrl+F) looks for a value, for example Erbil; the Replace tab (Ctrl+H) changes it, for example Hawler → Erbil.
  • Layout changes (widths, order, hidden and frozen columns) are part of the table's design: Access asks to save them when you close the table.
  • پانیی ستوون: سنووری ڕاستی سەرێک ڕابکێشە؛ لە سنوورەکە بکە بۆ گونجاندنی لەگەڵ پانترین نرخ. بەرزیی ڕیز: هێڵی نێوان دوو هەڵبژێری ڕابکێشە (هەموو ڕیزەکان دەگۆڕێن).
  • پانیی ورد: ڕاست لە سەرێک ← ⁦Field Width⁩ و ژمارەیەک بنووسە. لەبەرگرتنەوەی ستوون: لە سەرەکەی بکە بۆ هەڵبژاردنی، پاشان ⁦Ctrl+C⁩ هەموو نرخەکانی کۆپی دەکات (بۆ نموونە بۆ لکاندن لە Excel).
  • جووڵاندنی ستوون: لە سەرەکەی بکە، پاشان سەرەکە ڕابکێشە بۆ شوێنێکی نوێ. تەنها پیشاندانەکە دەگۆڕێت، نەک دیزاینەکە.
  • شاردنەوە / دەرخستن: ڕاست لە سەرێک ← ⁦Hide Fields⁩؛ ڕاست لە هەر سەرێک ← ⁦Unhide Fields⁩ و ئەو ستوونانە نیشان بکە کە پیشان بدرێن.
  • جێگیرکردن: ڕاست لە سەری StudentName ← ⁦Freeze Fields⁩: لە لای چەپ دەمێنێتەوە کاتێک بەرەو ڕاست دەڕۆیت؛ ⁦Unfreeze All Fields⁩ هەڵیدەوەشێنێتەوە.
  • : Home ← ⁦Find (Ctrl+F)⁩ بە دوای نرخێکدا دەگەڕێت، بۆ نموونە Erbil؛ تابی Replace ⁦(Ctrl+H)⁩ دەیگۆڕێت، بۆ نموونە Hawler → Erbil.
  • گۆڕانکارییەکانی ڕێکخستن (پانی، ڕیزبەندی، ستوونی شاراوە و جێگیر) بەشێکن لە دیزاینی : Access کاتی داخستنی دەپرسێت پاشەکەوتیان بکات.
Quick checkپشکنینی خێراA column shows Sulaim… because it is too narrow. What is the quickest fix?ستوونێک Sulaim… پیشان دەدات چونکە زۆر تەنگە. خێراترین چارە چییە؟

Sort and filterڕیزکردن و فلتەرکردن

Sorting and filtering are quick questions to a table (questions to queries shows the English for them). In :

و پرسیاری خێران لە (⁦questions to queries⁩ ئینگلیزییەکەیان پیشان دەدات). لە :

  • Sort: click in a column, then Home → Ascending (A→Z, 0→9, oldest date first) or Descending. Remove Sort goes back to key order. Sort Student by StudentName A–Z: Aram, Dilan, Hana, Hana, Karwan, Lana, Rezan, Shilan, Soran.
  • Selection filter: click a cell that says IT in Department → Home → Selection → Equals "IT": only the four IT students stay. Does Not Equal keeps the others.
  • Column filter: the arrow in a header (or Home → Filter) lists the values with tick boxes, plus Text Filters, Number Filters or Date Filters (for example Age Between 25 and 30, DOB Before 1995-01-01).
  • Filters on several columns combine (both must be true). The record bar says Filtered; Toggle Filter switches the filter off and on; Advanced → Clear All Filters removes them.
  • : لە ستوونێک بکە، پاشان Home → Ascending (A→Z، 0→9، کۆنترین ڕێکەوت سەرەتا) یان Descending. ⁦Remove Sort⁩ دەگەڕێتەوە بۆ ڕیزی . Student بەپێی StudentName لە A تا Z ڕیز بکە: Aram، Dilan، Hana، Hana، Karwan، Lana، Rezan، Shilan، Soran.
  • Selection: لە خانەیەک بکە کە IT لە Departmentـدا دەڵێت ← Home → Selection ← ⁦Equals "IT⁩": تەنها چوار قوتابییەکەی IT دەمێننەوە. ⁦Does Not Equal⁩ ئەوانی تر دەهێڵێتەوە.
  • ستوون: تیری ناو سەرێک (یان Home → Filter) نرخەکان بە چوارگۆشەی نیشانکردنەوە لیست دەکات، لەگەڵ ⁦Text Filters⁩، ⁦Number Filters⁩ یان ⁦Date Filters⁩ (بۆ نموونە Age Between ⁦25⁩ و ⁦30⁩، DOB Before ⁦1995-01-01⁩).
  • لەسەر چەند ستوونێک پێکەوە کار دەکەن (دەبێت هەردووکیان ڕاست بن). شریتی دەڵێت Filtered؛ ⁦Toggle Filter⁩ دەکوژێنێتەوە و هەڵیدەکاتەوە؛ Advanced ← ⁦Clear All Filters⁩ هەموویان لادەبات.

Filter by Form (one form for several OR conditions) is taught with forms in lesson 7, and saved questions are queries in lesson 6.

⁦Filter by Form⁩ (یەک بۆ چەند OR) لەگەڵ لە وانەی 7 دەخوێنرێت و پرسیارە پاشەکەوتکراوەکان پرسەکانن لە وانەی 6.

Quick checkپشکنینی خێراYou filtered Department = IT and then City = Erbil. Which students remain? ⁦Department = IT⁩ و پاشان ⁦City = Erbil⁩ دانا. کام قوتابی دەمێنێتەوە؟

08. Home Tab Part 02Kurdistan College · Kurdish (Sorani)کوردی (سۆرانی) · 2.4K viewsبینین · 51 likesلایک

Kurdish: sorting and filtering a datasheet - Ascending, Descending, Selection, number filters and Toggle Filter on a sample student table.

بە کوردی: و : Ascending، Descending، Selection، ژمارە و ⁦Toggle Filter⁩ لەسەر نموونەیی قوتابیان.

Kurdish (Sorani), whole video (15:31): Home > Sort & Filter on a student table - ascending and descending sorts, filter by selection, number filters and Toggle Filter.

بە کوردیی سۆرانی، هەموو ڤیدیۆکە ⁦(15:31)⁩: ⁦Sort & Filter⁩ لە Home لەسەر قوتابیان: بە و ، بە Selection، ژمارە و ⁦Toggle Filter⁩.

The Total rowڕیزی Total

A datasheet can show a Total row under the last record: Home → Records → Totals. Click a cell of the Total row and choose a function from its list: Sum, Average, Count, Maximum, Minimum, Standard Deviation or Variance for numbers and money; text fields offer Count. Click Totals again to hide the row (it cannot be deleted).

دەتوانێت ڕیزی Total لە ژێر کۆتا پیشان بدات: Home → Records → Totals. لە خانەیەکی ڕیزی Total بکە و لە لیستەکەی هەڵبژێرە: Sum، Average، Count، Maximum، Minimum، ⁦Standard Deviation⁩ یان Variance بۆ ژمارە و پارە؛ دەق Count پێشکەش دەکەن. دووبارە لە Totals بکە بۆ شاردنەوەی ڕیزەکە (ناسڕدرێتەوە).

Total row results for our sample dataئەنجامەکانی ڕیزی Total بۆ نموونەیی
TableTotal row cellخانەی ڕیزی TotalResultئەنجام
StudentStudentName → Count9
StudentAge → Average29.777… (about 29.8)⁦29.777⁩… (نزیکەی ⁦29.8⁩)
CourseFeeIQD → Sum2,000,000 IQD
EnrolmentMark → Count · Average10 · 76.2 (Hana's empty mark is not counted)⁦10⁩ · ⁦76.2⁩ (نمرە بەتاڵەکەی هانا ناژمێردرێت)

The Total row gives one result for the whole column. Results per group (the average mark of each course) need a totals query in lesson 6.

ڕیزی Total یەک ئەنجام بۆ هەموو ستوونەکە دەدات. ئەنجام بۆ هەر گرووپێک (تێکڕای نمرەی هەر وانەیەک) پێویستی بە پرسێکی کۆکردنەوە هەیە لە وانەی 6.

Quick checkپشکنینی خێراEnrolment has 11 rows but Count of Mark shows 10. Why?⁦Enrolment 11⁩ ڕیزی هەیە بەڵام Countـی ⁦Mark 10⁩ پیشان دەدات. بۆچی؟

A backup copy with Save Object Asباکئەپێک بە ⁦Save Object As⁩

Before an experiment — changing a data type, deleting rows — make a copy of the table: open Student, then File → Save As → Save Object As → Save As, name it Backup of Student and click OK. A second table with the same fields and the same rows appears in the Navigation Pane. If the experiment goes wrong, you still have the copy.

پێش تاقیکردنەوەیەک — گۆڕینی ، سڕینەوەی ڕیز — کۆپییەکی دروست بکە: Student بکەرەوە، پاشان File ← ⁦Save As⁩ ← ⁦Save Object As⁩ ← ⁦Save As⁩، ناوی بنێ Backup of Student و لە OK بکە. دووەم بە هەمان و هەمان ڕیزەکان لە دەردەکەوێت. ئەگەر تاقیکردنەوەکە هەڵە بوو، هێشتا کۆپییەکەت هەیە.

Quick checkپشکنینی خێراWhat does Save Object As create when Student is open?کاتێک Student کراوەتەوە، ⁦Save Object As⁩ چی دروست دەکات؟

Practiceڕاهێنان

ExerciseڕاهێنانBuild Course and EnrolmentCourse و Enrolment دروست بکە

In Design view create the two remaining tables and save them. Course: CourseCode (Short Text, the key), Title (Short Text), DeptCode (Short Text), Stage (Number), CourseType (Short Text), FeeIQD (Currency). Enrolment: EnrolmentID (AutoNumber, key), StudentID (Number), CourseCode (Short Text), EnrolDate (Date/Time), Mark (Number). Then type the rows below.

لە دوو تر دروست بکە و پاشەکەوتیان بکە. ⁦Course: CourseCode (Short Text⁩، )، ⁦Title (Short Text)⁩، ⁦DeptCode (Short Text)⁩، ⁦Stage (Number)⁩، ⁦CourseType (Short Text)⁩، ⁦FeeIQD (Currency). Enrolment: EnrolmentID (AutoNumber⁩، )، ⁦StudentID (Number)⁩، ⁦CourseCode (Short Text)⁩، ⁦EnrolDate (Date/Time)⁩، ⁦Mark (Number)⁩. پاشان ئەم ڕیزانەی خوارەوە بنووسە.

Show answerوەڵامەکە پیشان بدە
Course rowsڕیزەکانی Course
CourseCodeTitleDeptCodeStageCourseTypeFeeIQD
IT11Database FundamentalsIT1Bachelor450,000
IT12Access LabIT1Diploma300,000
CS21Python ProgrammingCS2Bachelor500,000
BI11Cell BiologyBiology1Bachelor400,000
AC11Principles of AccountingAccounting1Diploma350,000
Enrolment rows (leave EnrolmentID to AutoNumber)ڕیزەکانی ⁦Enrolment (EnrolmentID⁩ بۆ AutoNumber بهێڵەوە)
EnrolmentIDStudentIDCourseCodeEnrolDateMark
11IT112026-09-1478
21IT122026-09-1485
32CS212026-09-1591
42IT112026-09-1566
53BI112026-09-1672
64IT112026-09-1759
74IT122026-09-1788
86CS212026-09-2147
97IT112026-09-2295
108BI112026-09-2481
119IT122026-10-01(empty — not graded yet)(بەتاڵ — هێشتا نمرەی پێ نەدراوە)

Check: Course is sorted by CourseCode when you open it (AC11, BI11, CS21, IT11, IT12) because CourseCode is its key. Leave Mark empty for row 11: an empty Mark means "not graded yet", which is not the same as 0. Rezan and Germany have no enrolment or student on purpose: later lessons look for them.

پشکنین: Course کاتی کردنەوە بەپێی CourseCode ڕیز دەکرێت (⁦AC11⁩، ⁦BI11⁩، ⁦CS21⁩، ⁦IT11⁩، ⁦IT12⁩) چونکە CourseCode Courseـە. Mark بۆ ڕیزی ⁦11⁩ بەتاڵ بهێڵەوە: Markـی بەتاڵ واتە «هێشتا نمرەی پێ نەدراوە» کە هەمان 0 نییە. Rezan و Germany بە ئەنقەست هیچ تۆمارکردن و قوتابییەکیان نییە: وانەکانی دواتر بە دوایاندا دەگەڕێن.

ExerciseڕاهێنانFind the two design mistakesدوو هەڵەی دیزاین بدۆزەرەوە

Hana keeps a small database of books she lends to friends: Book(BookID AutoNumber key, Title, Author), Friend(LastName key, FirstName, Phone) and Loan(BookID, FriendName, LoanDate, ReturnDate) with the composite key (BookID, FriendName). Find two key mistakes and fix them.

هانا بچووکی هەیە بۆ ئەو کتێبانەی بە هاوڕێکانی قەرز دەدات: ⁦Book (BookID AutoNumber⁩ ، Title، Author)، ⁦Friend (LastName⁩ ، FirstName، Phone) و ⁦Loan (BookID⁩، FriendName، LoanDate، ReturnDate) بە (BookID، FriendName). دوو هەڵەی بدۆزەرەوە و چاکیان بکە.

Hintئاماژە

Ask for each key: can two rows ever need the same value?

بۆ هەر بپرسە: ئایا هەرگیز دوو ڕیز پێویستیان بە هەمان نرخ دەبێت؟

Show answerوەڵامەکە پیشان بدە
  • Friend keyed by LastName: two friends can share a last name (two Ahmeds in one family), so the second could never be added. Add FriendID (AutoNumber) as the key and keep LastName as an ordinary field.
  • Loan keyed by (BookID, FriendName): the same friend could borrow the same book only once ever; the second loan would repeat the key. Give Loan its own LoanID (AutoNumber), and store FriendID instead of a name.
  • Friend بە LastName وەک : دوو هاوڕێ دەکرێت هەمان ناوی کۆتاییان هەبێت (دوو ئەحمەد لە یەک خێزان)، بۆیە دووەمیان هەرگیز زیاد نەدەکرا. ⁦FriendID (AutoNumber)⁩ وەک زیاد بکە و LastName وەک ئاسایی بهێڵەوە.
  • Loan بە (BookID، FriendName) وەک : هەمان هاوڕێ تەنها یەک جار لە ژیانیدا دەیتوانی هەمان کتێب قەرز بکات؛ قەرزی دووەم دووبارە دەکردەوە. LoanIDـی تایبەت ⁦(AutoNumber)⁩ بدە بە Loan و لە جیاتی ناو FriendID هەڵبگرە.
ExerciseڕاهێنانDatasheet skillsشارەزاییەکانی پەڕەی دراوە

In Student: (1) sort by StudentName A–Z; (2) show only the students born before 1996; (3) freeze StudentName and hide Phone; (4) add a Total row that counts the students. Write down the results.

لە ⁦Student: (1)⁩ بەپێی StudentName لە A تا Z ڕیز بکە؛ ⁦(2)⁩ تەنها ئەو قوتابیانە پیشان بدە کە پێش ⁦1996⁩ لەدایک بوون؛ ⁦(3) StudentName⁩ جێگیر بکە و Phone بشارەوە؛ ⁦(4)⁩ ڕیزی Total زیاد بکە کە قوتابیان دەژمێرێت. ئەنجامەکان بنووسە.

Show answerوەڵامەکە پیشان بدە
  • (1) Aram, Dilan, Hana, Hana, Karwan, Lana, Rezan, Shilan, Soran.
  • (2) DOB → Date Filters → Before → 1996-01-01: Karwan (1995), Rezan (1992), Soran (1994), Hana (1993) — 4 records.
  • (3) right-click StudentName → Freeze Fields; right-click Phone → Hide Fields.
  • (4) Home → Totals; in the Total row under StudentName choose Count: 9 (with the filter of (2) still on: 4).
  • ⁦(1) Aram⁩، Dilan، Hana، Hana، Karwan، Lana، Rezan، Shilan، Soran.
  • ⁦(2) DOB⁩ ← ⁦Date Filters⁩ ← Before ← ⁦1996-01-01: Karwan (1995)⁩، ⁦Rezan (1992)⁩، ⁦Soran (1994)⁩، ⁦Hana (1993)⁩ — چوار .
  • ⁦(3)⁩ ڕاست لە StudentName ← ⁦Freeze Fields⁩؛ ڕاست لە Phone ← ⁦Hide Fields⁩.
  • ⁦(4) Home⁩ ← Totals؛ لە ڕیزی Total لە ژێر StudentName، Count هەڵبژێرە: 9 (ئەگەر ⁦(2)⁩ هێشتا چالاک بێت: ⁦4⁩).

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat to doچی بکەیت
Phone numbers in a Number fieldژمارەی تەلەفۆن لە NumberUse Short Text; numbers lose the leading 0 and the +.⁦Short Text⁩ بەکاربهێنە؛ ژمارە سفری سەرەتا و + ون دەکات.
A person's name as the primary keyناوی کەس وەک Use an AutoNumber ID; names repeat (two Hanas).IDـی AutoNumber بەکاربهێنە؛ ناو دووبارە دەبێتەوە (دوو هانا).
Typing a value into an AutoNumber fieldنووسینی نرخ لە AutoNumberLeave it; Access fills it. Gaps after deleted rows are normal.بەجێی بهێڵە؛ Access پڕی دەکاتەوە. بۆشایی دوای ڕیزی سڕاو ئاساییە.
Marks stored in the Course tableهەڵگرتنی نمرە لە CoursePut student + course + mark in Enrolment.قوتابی و وانە و نمرە بخە ناو Enrolment.
Changing a data type on a full field without a backupگۆڕینی لەسەر پڕ بەبێ Save Object As first; some values may be lost.سەرەتا ⁦Save Object As⁩؛ لەوانەیە هەندێک نرخ ون بن.
Deleting records and expecting Undoسڕینەوەی و چاوەڕوانی Deleted records are gone; check before you confirm. سڕاو ناگەڕێنەوە؛ پێش پشتڕاستکردنەوە بپشکنە.
Spaces or hyphens in field namesبۆشایی یان هێڵ لە ناوی Use names like StudentName; queries stay simpler.ناوی وەک StudentName بەکاربهێنە؛ سادەتر دەمێننەوە.

Summaryپوختە

  • Plan the tables first: one subject per table; a mark belongs in Enrolment.
  • Create tables in Datasheet view, Design view, from Application Parts or templates, by import, or by copying (Structure Only / Structure and Data / Append).
  • Pick the most specific data type; Short Text for phones; Yes/No stores −1/0; Long Text holds about 1 GB.
  • Set the primary key in Design view; Access offers an AutoNumber ID; avoid names and over-tight composite keys.
  • Records save themselves when you leave them; deleted records cannot be undone.
  • Arrange (width, move, hide, freeze), find and replace, sort, filter and add a Total row in Datasheet view; Save Object As makes a backup copy.
  • سەرەتا پلان بکە: هەر یەک بابەت؛ نمرە هی Enrolmentـە.
  • لە ، ، لە ⁦Application Parts⁩ یان ، بە هێنان یان بە کۆپیکردن دروست بکە ⁦(Structure Only / Structure and Data / Append)⁩.
  • وردترین هەڵبژێرە؛ ⁦Short Text⁩ بۆ تەلەفۆن؛ ⁦Yes/No⁩ −1-1 یان 0 هەڵدەگرێت؛ ⁦Long Text⁩ نزیکەی ⁦1 GB⁩ هەڵدەگرێت.
  • لە دابنێ؛ ⁦Access ID⁩ـی AutoNumber پێشنیار دەکات؛ خۆت لە ناو و زۆر تەنگ بپارێزە.
  • کاتێک بەجێیان دەهێڵیت خۆیان پاشەکەوت دەکەن؛ سڕاو ناگەڕێنەوە.
  • لە ڕێک بخە (پانی، جووڵاندن، شاردنەوە، جێگیرکردن)، بدۆزەرەوە و لەجێی دابنێ، ڕیز بکە، فلتەر بکە و ڕیزی Total زیاد بکە؛ ⁦Save Object As⁩ کۆپییەکی دروست دەکات.
Review questionsپرسیارەکانی پێداچوونەوە
Is Lookup Wizard a data type?ئایا ⁦Lookup Wizard⁩ جۆری دراوەیە؟

No. It is a wizard that makes a lookup field; the field keeps a real type such as Short Text or Number.

نەخێر. کە دروست دەکات؛ جۆرێکی ڕاستەقینە وەک ⁦Short Text⁩ یان Number دەهێڵێتەوە.

What does the asterisk (*) on a record selector mean?ئەستێرە ⁦(*)⁩ لەسەر هەڵبژێری تۆمار واتای چییە؟

It is the empty new-record row; typing there adds a record.

ڕیزی بەتاڵی نوێیە؛ نووسین لەوێ زیاد دەکات.

Which key types today's date in a datasheet?کام دوگمە ڕێکەوتی ئەمڕۆ لە پەڕەیەکی دراوەدا دەنووسێت؟

Ctrl+; (Ctrl and semicolon).

⁦Ctrl+; (Ctrl⁩ و ).

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

How to use Microsoft Access - Beginner TutorialKevin Stratvert · Englishئینگلیزی · 4.9M viewsبینین · 96K likesلایک · Partبەشی 5:22–14:36 (ofلە 31:06)

Building a real table in Microsoft Access: fields are the columns, records are the rows, and a key field identifies each record.

ڕاستەقینە لە ⁦Microsoft Access⁩ دروست دەکرێت: دادەنرێن، دەبنە و وەک هەر لەوانی تر جیا دەکاتەوە.

Plays 5:22-14:36 (chapter 'Tables, fields & records'): two tables built in Datasheet view with Click to Add, data types, an AutoNumber ID and typed records.

لە ⁦5:22⁩ تا ⁦14:36⁩ پەخش دەبێت (بەشی Tables, fields & records): دوو لە بە ⁦Click to Add⁩ دروست دەکرێن: ، IDـێکی AutoNumber و نووسینی .

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Field Properties: Sizes, Formats and Input Masksتایبەتمەندییەکانی ستوون: قەبارە، Format و ماسکەکانی نێوخستە

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.