In this post, we introduce the concept of indexes in MS Access.
Open up a table in design view. You should see the Ribbon below. Click on the indexes button.
The dialog box that opens up shows us all the indexes for a table. In this case there is one index called Primary Key, which is set against the CustomerID field and is sorted in Ascending order.
An index has some extra details below as well.
- Primary – signifies this is a Primary Key.
- Unique – signifies that every single number in this field MUST BE UNIQUE.
- Ignore Nulls – states that this field can NEVER BE NULL.
Before reading on, think for a moment why else an index might be useful, aside from ensuring unique values.
Any ideas?
Indexes and Database Search Efficiency
If you said speed then give yourself 10 house points! Imagine trying to find something in the entire Encyclopaedia Britannica if you didn’t have an index! What if all the subjects were jumbled up? You would have to read all nineteen thousand pages to find something! But if you have a correctly sorted index, it doesn’t matter where the subject is as you can use the index to find it!
That is exactly what indexes do in a relational database. Indexes are sorted lists of data against particular columns. In the case of Primary Keys an index is made with all the primary key values currently being used and the location of that record within the database. Using this technique, it doesn’t matter what order records are in the table, we can use the index to find all the records in the correct order.
Indexes can also be made up of any other field you like and need not be unique. For example you may want a Customers table to have indexes on a customer name. By doing this we can decrease the search time when doing a lookup on a customer – if we don’t include an index, Access will have to do the equivalent of searching the Encyclopedia Britannica for a name every time we run a query or use a lookup function!
Related Posts
Adding Fields To A Table TablesField Data Types Tables
How To Create A New Table In Access Tables
How To Increment A Text ID Field Tables
How To Set A Primary Key Tables


Збирався купити новий комплект текстилю для ліжка і звернув увагу на [url=https://kupiti-postil.com.ua/]kupiti-postil.com.ua[/url]. Замовив комплект із сатину – якістю задоволений. Ось вирішив поділитися, які варіанти.
Які товари є в наявності:
– Бюджетна бязь, сатиновий матеріал, перкаль, натуральний льон, щільний поплін, ранфорс
– Напівторні, двоспальні, євро-комплекти та сімейні набори
– Простірадла з резинкою
– Подушки 50×70 і 70×70
Переваги, які бачу:
– Пропозиції на будь-який гаманець (від 800 до 4000+ грн)
– Завжди пишуть щільність матеріалу (для бязі 110–145 г/м², для сатину 120–170 г/м²)
– Пишуть про сертифікацію OEKO-TEX – для алергіків важливо
– Є сімейні набори з двома підковдрами – кожен спить під своєю ковдрою
Вибір за тканинами:
– Для економії – бязь чи ранфорс (вистачає на 5–7 років)
– Люкс-варіант – сатин чи перкаль (вистачає до 10 років)
– На спекотний сезон – льон (дарує прохолоду, але потребує прасування)
– Для подружжя – набори з двома ковдрами
Там радять: обов’язково виміряйте власний матрац та ковдру перед покупкою, бо розміри у різних брендів різняться на 5–10 см.
Я собі взяв сатин – ніжний на дотик, добре дихає. Спати одне задоволення. Якщо шукаєте якісну постіль – гляньте.
Який комплект у вас вдома? Поділіться відгуками