Re: primary key

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tom Ellison (tellison_at_jcdoyle.com)
Date: 09/09/04


Date: Thu, 09 Sep 2004 11:35:11 -0500

Dear Kay:

To make a column to be part of a primary key, it must have Required =
Yes (for Jet). Before you can do this, you may need to make sure
there are no NULLs in that column. Otherwise, it won't allow you to
set Required = Yes for that column.

Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts

On Thu, 9 Sep 2004 08:46:07 -0700, "Kay" <kwickham@stecoinc.com>
wrote:

>When I try to make a field the primary key and save it, it
>tells me that I can not make a field with a "null" value
>the primary key. It says that on all of the fields I have
>tried. So, how do I make a field not be of a "null" value
>so that I can make it a primary key, which I am trying to
>do so I can keep from haveing duplicate records in a
>query.
>
>Thanks, Kay



Relevant Pages

  • Re: Renumbering a field
    ... I don't believe there are currently any such constraints. ... I'd like to change the field to be a primary key. ... "Tom Ellison" wrote: ... > existing column is a simple derivative of that query. ...
    (microsoft.public.access.queries)
  • Re: how can I do a sumif array type function?
    ... You don't have to remove the existing primary key in order to add an ... Indexing by the 3 columns on which you must use in the criteria of the ... When I write similar queries for MSDE, ... Tom Ellison ...
    (microsoft.public.access.queries)
  • Re: Inserting GUID
    ... identity) and it is the primary key, but it is not an identity column. ... "Tom Ellison" wrote: ... I need to add a GUID as the primary key in the SQL ... Access append query? ...
    (microsoft.public.access.queries)
  • Re: primary key
    ... >there are no NULLs in that column. ... >Tom Ellison ... >>When I try to make a field the primary key and save it, ... >>Thanks, Kay ...
    (microsoft.public.access.queries)
  • Re: Two Primary fields????????????
    ... A primary key is just a special case of a unique index, ... Tom Ellison ... >in this case I need to compare the ID and the VIN and make ...
    (microsoft.public.access.queries)