Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Thanks for all the info here. It is great info and I would use it as I am self-taught. </p> <p>The easiest way I found as alluded to here, is to use an index on all the fields I want (with No Duplicates). The trick here is really to use multiple indexes (this basically allows a compound index, or a "virtual" index which is made up of more than one field).</p> <p>The method can be found here: <a href="http://en.allexperts.com/q/Using-MS-Access-1440/Creating-Unique-Value-check.htm" rel="nofollow noreferrer">http://en.allexperts.com/q/Using-MS-Access-1440/Creating-Unique-Value-check.htm</a>, but I would repeat it in the event that the link gets removed.</p> <p>From Access Help: Prevent duplicate values from being entered into a combination of fields</p> <p>Create a multiple-field index using the fields you want to prohibit duplicate values for. Leave the Indexes window open when you have finished defining the index.</p> <p>How?</p> <ol> <li>Open the table in Design view.</li> <li>Click Indexes on the toolbar.</li> <li>In the first blank row in the Index Name column, type a name for the index. You can name the index after one of the index fields, or use another name.</li> <li>In the Field Name column, click the arrow and select the first field for the index.</li> <li>In the next row in the Field Name column, select the second field for the index. (Leave the Index Name column blank in that row.) Repeat this step until you have selected all the fields you want to include in this index. The default sort order is Ascending. Select Descending in the Sort Order column of the Indexes window to sort the corresponding field's data in descending order.</li> <li>In the upper portion of the Indexes window, click the new index name.</li> <li>In the lower portion of the Indexes window, click the Unique property box, and then click Yes.</li> </ol> <p>You should now be able to not enter records which have the same values in the indexes. I got problems where I could still enter values if one of the indexed fields has a space (there is an option to check/ignore null values when you set up the index) but it didn't work for me, but the solution worked because I won't have null values anyway.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload