Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

primary key

Discussion in 'Information Technology' started by bchasse, Jul 28, 2006.

Tags:
  1. bchasse

    bchasse
    Expand Collapse
    Guest

    I am trying to import data originally set up in an Excel spreadsheet and
    everytime I do it I get the following message:

    "Error creating primary key on field "ID" (index or primary key cannot
    contain a null value)"

    I don't understand. Why can't I create a primary key on one of the fields?
    How am I going to link the different tables if it won't let me set up a
    primary key. It gives me the same message no matter what field I try and
    use.

    HELP!!!
     
  2. Loading...

    Similar Threads Forum Date
    Controversial Surat school puts primary kids to agni pariksha Hard Talk Apr 22, 2010
    Singh Teaches Primary Pupils About Sikh Culture Sikh Sikhi Sikhism Jan 31, 2009
    Sikh News Cold wave shuts Punjab primary schools for a week (New Kerala) Breaking News Jan 31, 2008
    A Group Of Scientists Placed 5 Monkeys In A Cage And In The Middle, A Ladder With Bananas Inspirational Stories Apr 6, 2015
    Gurus When Guru Gobind Singh Ji played Hockey (ਪੰਜਾਬੀ) History of Sikhism Apr 13, 2014

  3. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    The message is telling you that at least one of the rows you imported didn't
    have a value for the ID field.

    All fields in a primary key must contain values.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)


    "bchasse" <bchasse@discussions.microsoft.com> wrote in message
    news:F571BC80-E3C0-4138-A195-01DFEE3CB91D@microsoft.com...
    >I am trying to import data originally set up in an Excel spreadsheet and
    > everytime I do it I get the following message:
    >
    > "Error creating primary key on field "ID" (index or primary key cannot
    > contain a null value)"
    >
    > I don't understand. Why can't I create a primary key on one of the
    > fields?
    > How am I going to link the different tables if it won't let me set up a
    > primary key. It gives me the same message no matter what field I try and
    > use.
    >
    > HELP!!!
     
  4. bchasse

    bchasse
    Expand Collapse
    Guest

    Is there any other possibility that could explain this? When I look down the
    row and review it, there is an ID listed for absolutely every record. The
    only cell that does not contain a number is the header row and I marked this
    accordingly when I tried to import.

    "Douglas J. Steele" wrote:

    > The message is telling you that at least one of the rows you imported didn't
    > have a value for the ID field.
    >
    > All fields in a primary key must contain values.
    >
    > --
    > Doug Steele, Microsoft Access MVP
    > http://I.Am/DougSteele
    > (no private e-mails, please)
    >
    >
    > "bchasse" <bchasse@discussions.microsoft.com> wrote in message
    > news:F571BC80-E3C0-4138-A195-01DFEE3CB91D@microsoft.com...
    > >I am trying to import data originally set up in an Excel spreadsheet and
    > > everytime I do it I get the following message:
    > >
    > > "Error creating primary key on field "ID" (index or primary key cannot
    > > contain a null value)"
    > >
    > > I don't understand. Why can't I create a primary key on one of the
    > > fields?
    > > How am I going to link the different tables if it won't let me set up a
    > > primary key. It gives me the same message no matter what field I try and
    > > use.
    > >
    > > HELP!!!

    >
    >
    >
     
  5. ChrisM

    ChrisM
    Expand Collapse
    Guest

    Any chance you are inadvertantly selecting a blank row, or that there is
    some 'junk data' in a cell of the spreadsheet below your real data? If there
    is, the import routine might be trying to include all the (blank) rows
    between the end of your data and this 'junk'.

    Cheers,

    ChrisM.

    "bchasse" <bchasse@discussions.microsoft.com> wrote in message
    news:A0ADFEB6-1CE4-4200-92EC-1980909B8873@microsoft.com...
    > Is there any other possibility that could explain this? When I look down
    > the
    > row and review it, there is an ID listed for absolutely every record. The
    > only cell that does not contain a number is the header row and I marked
    > this
    > accordingly when I tried to import.
    >
    > "Douglas J. Steele" wrote:
    >
    >> The message is telling you that at least one of the rows you imported
    >> didn't
    >> have a value for the ID field.
    >>
    >> All fields in a primary key must contain values.
    >>
    >> --
    >> Doug Steele, Microsoft Access MVP
    >> http://I.Am/DougSteele
    >> (no private e-mails, please)
    >>
    >>
    >> "bchasse" <bchasse@discussions.microsoft.com> wrote in message
    >> news:F571BC80-E3C0-4138-A195-01DFEE3CB91D@microsoft.com...
    >> >I am trying to import data originally set up in an Excel spreadsheet and
    >> > everytime I do it I get the following message:
    >> >
    >> > "Error creating primary key on field "ID" (index or primary key cannot
    >> > contain a null value)"
    >> >
    >> > I don't understand. Why can't I create a primary key on one of the
    >> > fields?
    >> > How am I going to link the different tables if it won't let me set up a
    >> > primary key. It gives me the same message no matter what field I try
    >> > and
    >> > use.
    >> >
    >> > HELP!!!

    >>
    >>
    >>
     

Share This Page